function views_ui_edit_view_form_delete

File

includes/admin.inc, line 2338

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',
            ),
        ),
    );
}