update_course_sec_db_table

Description

Fires during the update of a course section.

Usage

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

Parameters

$sect: (object) (required) Course section object.

Example

$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);

Notes

The update_course_sec_db_table hook is useful for intercepting posted data or for custom fields.

Change Log

Since 6.1.10

Source File

update_course_sec_db_table hook is located in app/routers/section.router.php.

See Also

Custom Fields