Fires before the batch registration process is complete. This hook is only available if you have the Saved Query module installed.
<?php $app->hook->add_action( 'pre_brgn_stu_crse_reg', 'function_name' ); ?>
$stcs: (object) (required) Student course section object.
$stac: (object) (required) Student academic credit object.
$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);
The pre_brgn_stu_crse_reg hook is useful for intercepting posted data.
Since 6.1.07
pre_brgn_stu_crse_reg hook is located in app/routers/savedquery.router.php.