1 views_ui.admin.inc views_ui_delete_form($form, &$form_state, view $view)

Form callback; Delete a view.

File

core/modules/views_ui/views_ui.admin.inc, line 1965
Provides the Views' administrative interface.

Code

function views_ui_delete_form($form, &$form_state, view $view) {
  $form_state['view'] = $view;
  $question = t('Delete the view @name?', array('@name' => $view->get_human_name()));
  $path = 'admin/structure/views';
  $description = t('Deleting the view %name will remove all pages, blocks, and other displays provided by this view.', array('%name' => $view->get_human_name()));
  return confirm_form($form, $question, $path, $description, t('Delete'));
}