function views_ui_edit_view_form_delete in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 includes/admin.inc \views_ui_edit_view_form_delete()
- 6.2 includes/admin.inc \views_ui_edit_view_form_delete()
File
- includes/
admin.inc, line 2325 - 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',
),
),
);
}