You are here

function views_ui_edit_view_form_delete in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/admin.inc \views_ui_edit_view_form_delete()
  2. 7.3 includes/admin.inc \views_ui_edit_view_form_delete()
1 string reference to 'views_ui_edit_view_form_delete'
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 963
admin.inc Provides the Views' administrative interface.

Code

function views_ui_edit_view_form_delete($form, &$form_state) {
  unset($_REQUEST['destination']);

  // Redirect to the delete confirm page
  $form_state['redirect'] = array(
    'admin/build/views/delete/' . $form_state['view']->name,
    'cancel=admin/build/views/edit/' . $form_state['view']->name . '&' . drupal_get_destination(),
  );
}