function calendar_form_alter in Calendar 5.2
Same name and namespace in other branches
- 5 calendar.module \calendar_form_alter()
Implementation of hook_form_alter(). Make sure calendar_info() and calendar_fields() get updated.
File
- ./
calendar.module, line 90 - Adds calendar filtering and displays to Views.
Code
function calendar_form_alter($form_id, &$form) {
if ($form_id == 'views_edit_view') {
$form['#submit'] = array_merge($form['#submit'], array(
'calendar_clear_all' => array(),
));
}
}