function calendar_systems_form_alter in Calendar Systems 7.3
Same name and namespace in other branches
- 8 calendar_systems.module \calendar_systems_form_alter()
- 5 calendar_systems.module \calendar_systems_form_alter()
- 6.3 calendar_systems.module \calendar_systems_form_alter()
- 6 calendar_systems.module \calendar_systems_form_alter()
- 7 calendar_systems.module \calendar_systems_form_alter()
- 7.2 calendar_systems.module \calendar_systems_form_alter()
Implements hook_form_alter().
@todo Extend, fix.
File
- ./
calendar_systems.module, line 206 - Contains Calendar Systems hook implementations and helpers.
Code
function calendar_systems_form_alter(&$form, $form_state, $form_id) {
// Overwrite date field element validate callback:
if (isset($form['author']['date'])) {
$form['author']['date']['#element_validate'] = array(
'calendar_systems_date_validate',
);
}
if (isset($form['admin']['date'])) {
$form['admin']['date']['#element_validate'] = array(
'calendar_systems_date_validate',
);
}
}