function hook_course_access_alter in Course 8.2
Same name and namespace in other branches
- 8.3 course.api.php \hook_course_access_alter()
- 7.2 course.api.php \hook_course_access_alter()
- 7 course.api.php \hook_course_access_alter()
- 3.x course.api.php \hook_course_access_alter()
Implements hook_course_access_alter().
1 function implements hook_course_access_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- course_uc_course_access_alter in modules/
course_uc/ course_uc.module - Implements hook_course_access_alter().
File
- ./
course.api.php, line 129 - Hooks provided by Course module.
Code
function hook_course_access_alter(&$hooks, $op, $node, $account) {
if ($op == 'enroll') {
$hooks['wait_a_minute'] = array(
'message' => t('You cannot take this course.'),
'weight' => 5,
'success' => FALSE,
);
}
}