You are here

function views_ui_edit_view_form_cancel in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views_ui/admin.inc \views_ui_edit_view_form_cancel()
  2. 6.2 includes/admin.inc \views_ui_edit_view_form_cancel()
  3. 7.3 includes/admin.inc \views_ui_edit_view_form_cancel()

Submit handler for the edit view form.

1 string reference to 'views_ui_edit_view_form_cancel'
views_ui_edit_view_form in includes/admin.inc
The main edit view form, which is really just a save/cancel/delete button.

File

includes/admin.inc, line 988
admin.inc 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.
  views_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/build/views');
  }
}