function views_ui_edit_view_form_cancel

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

Submit handler for the edit view form.

1 string reference to 'views_ui_edit_view_form_cancel'
views_ui_edit_form in includes/admin.inc
Form builder callback for editing a View.

File

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

Code

function views_ui_edit_view_form_cancel($form, &$form_state) {
  // Remove this view from cache so edits will be lost.
  ctools_object_cache_clear('view', $form_state['view']->name);
  if (empty($form['view']->vid)) {
    // I seem to have to drupal_goto here because I can't get fapi to
    // honor the redirect target. Not sure what I screwed up here.
    drupal_goto('admin/structure/views');
  }
}