You are here

function date_form_alter in Date 5

Same name and namespace in other branches
  1. 5.2 date/date.module \date_form_alter()
  2. 6.2 date/date.module \date_form_alter()
  3. 6 date/date.module \date_form_alter()
  4. 7 date.module \date_form_alter()

Implementation of hook_form_alter(). Make sure date information gets updated.

File

./date.module, line 40
Defines a date/time field type.

Code

function date_form_alter($form_id, &$form) {
  if ($form_id == 'views_edit_view') {
    $form['#submit'] = array_merge($form['#submit'], array(
      'date_clear_all' => array(),
    ));
  }
}