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_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 956
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');
  }
}