function views_ui_edit_view_form_cancel

Same name in other branches
  1. 7.x-3.x 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

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