function views_ui_admin_delete_confirm in Views (for Drupal 7) 5
1 string reference to 'views_ui_admin_delete_confirm'
File
- ./
views_ui.module, line 531
Code
function views_ui_admin_delete_confirm($vid = '') {
$view = _views_load_view($vid);
if (!$view) {
return drupal_goto('admin/build/views');
}
$form['vid'] = array(
'#type' => 'value',
'#value' => $view->vid,
);
// bdragon note: Did you mean to drop the above line on the floor with this?
$form = confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $view->name,
)), $_GET['destination'] ? $_GET['destination'] : 'admin/build/views', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
return $form;
}