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)
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 966
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());
}