You are here

function views_ui_delete1_confirm in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/convert.inc \views_ui_delete1_confirm()

Page to delete a Views 1 view.

1 string reference to 'views_ui_delete1_confirm'
views_ui_menu in ./views_ui.module

File

includes/convert.inc, line 145
convert.inc

Code

function views_ui_delete1_confirm(&$form_state, $vid) {
  $form_state['vid'] = $vid;
  $form = array();
  $cancel = 'admin/build/views/tools/convert';
  if (!empty($_REQUEST['cancel'])) {
    $cancel = $_REQUEST['cancel'];
  }
  return confirm_form($form, t('Are you sure you want to delete the view %name?', array(
    '%name' => $view->name,
  )), $cancel, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}