function course_signup_form_alter in Course 7
Same name and namespace in other branches
- 7.2 modules/course_signup/course_signup.module \course_signup_form_alter()
Implements hook_form_alter().
File
- modules/
course_signup/ course_signup.module, line 398
Code
function course_signup_form_alter(&$form, &$form_state, $form_id) {
if (in_array($form_id, array(
'signup_form',
))) {
$node = node_load(arg(1));
if (course_node_is_course($node)) {
$form['#access'] = FALSE;
}
}
}