function panels_views_delete_confirm in Panels 5.2
Provide a form to confirm deletion of a view pane.
1 string reference to 'panels_views_delete_confirm'
- panels_views_menu in panels_views/
panels_views.module - Implementation of hook_menu().
File
- panels_views/
panels_views.module, line 555 - panels_views.module
Code
function panels_views_delete_confirm($panel_view) {
if (!is_object($panel_view)) {
$panel_view = panels_views_load($panel_view);
}
if (empty($panel_view) || empty($panel_view->pvid)) {
return drupal_not_found();
}
$form['pvid'] = array(
'#type' => 'value',
'#value' => $panel_view->pvid,
);
return confirm_form($form, t('Are you sure you want to delete the panel view "@title"?', array(
'@title' => $panel_view->title,
)), $_GET['destination'] ? $_GET['destination'] : 'admin/panels/views', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}