function date_form_alter in Date 5
Same name and namespace in other branches
- 5.2 date/date.module \date_form_alter()
- 6.2 date/date.module \date_form_alter()
- 6 date/date.module \date_form_alter()
- 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(),
));
}
}