pre_brgn_stu_crse_reg

Description

Fires before the batch registration process is complete. This hook is only available if you have the Saved Query module installed.

Usage

<?php $app->hook->add_action( 'pre_brgn_stu_crse_reg', 'function_name' ); ?>

Parameters

$stcs: (object) (required) Student course section object.

$stac: (object) (required) Student academic credit object.

Example

$app = \Liten\Liten::getInstance();

function pre_brgn_student_registration($stcs, $stac) {
    
    $override_status = [ 
        $stcs->status = 'N',
        $stac->status = 'N'
    ];
    
    return $override_status;
    
}
$app->hook->add_action('pre_brgn_stu_crse_reg', 'pre_brgn_student_registration', 10, 2);

Notes

The pre_brgn_stu_crse_reg hook is useful for intercepting posted data.

Change Log

Since 6.1.07

Source File

pre_brgn_stu_crse_reg hook is located in app/routers/savedquery.router.php.