You are here

function calendar_systems_form_alter in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar_systems.module \calendar_systems_form_alter()
  2. 5 calendar_systems.module \calendar_systems_form_alter()
  3. 6 calendar_systems.module \calendar_systems_form_alter()
  4. 7.3 calendar_systems.module \calendar_systems_form_alter()
  5. 7 calendar_systems.module \calendar_systems_form_alter()
  6. 7.2 calendar_systems.module \calendar_systems_form_alter()

Implementation of hook_form_alter(). Optionally record all form submissions, for later use in building distributions

File

./calendar_systems.module, line 366

Code

function calendar_systems_form_alter(&$form, $form_state, $form_id) {
  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',
    );
  }
}