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