function views_ui_standard_cancel

3.x admin.inc views_ui_standard_cancel($form, &$form_state)
2.x admin.inc views_ui_standard_cancel($form, &$form_state)

Submit handler for cancel button

1 string reference to 'views_ui_standard_cancel'
views_ui_standard_form_buttons in includes/admin.inc
Provide a standard set of Apply/Cancel/OK buttons for the forms. Also provide a hidden op operator because the forms plugin doesn't seem to properly provide which button was clicked.

File

includes/admin.inc, line 2621
Provides the Views' administrative interface.

Code

function views_ui_standard_cancel($form, &$form_state) {
  if (!empty($form_state['view']->changed) && isset($form_state['view']->form_cache)) {
    unset($form_state['view']->form_cache);
    views_ui_cache_set($form_state['view']);
  }

  $form_state['redirect'] = 'admin/structure/views/view/' . $form_state['view']->name . '/edit';
}