Fires during the update of a course section.
<?php $app->hook->add_action( 'update_course_sec_db_table', 'function_name' ); ?>
$sect: (object) (required) Course section object.
$app = \Liten\Liten::getInstance(); function save_section_field($sect) { $sect->custom_field = $_POST['custom_field']; } $app->hook->add_action('update_course_sec_db_table', 'save_section_field', 10, 1);
The update_course_sec_db_table hook is useful for intercepting posted data or for custom fields.
Since 6.1.10
update_course_sec_db_table hook is located in app/routers/section.router.php.