function views_ui_edit_view_form_delete

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

File

includes/admin.inc, line 2185
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/structure/views/view/' . $form_state['view']->name . '/delete', array('query' => drupal_get_destination() + array('cancel' => 'admin/structure/views/view/' . $form_state['view']->name . '/edit')));
}