You are here

function calendar_form_alter in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.module \calendar_form_alter()

Implementation of hook_form_alter(). Make sure calendar_info() and calendar_fields() get updated.

File

./calendar.module, line 52
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(),
    ));
  }
}