function panels_page_delete_confirm in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_page/panels_page.admin.inc \panels_page_delete_confirm()
Provide a form to confirm deletion of a panel page.
1 string reference to 'panels_page_delete_confirm'
- panels_page_admin_dynamic_menu_items in panels_page/
panels_page.menu.inc
File
- panels_page/
panels_page.admin.inc, line 156 - panels_page.admin.inc
Code
function panels_page_delete_confirm(&$form_state, $panel_page) {
$form_state['panel_page'] = $panel_page;
$form = array();
if ($panel_page->type != t('Overridden')) {
return confirm_form($form, t('Are you sure you want to delete "@title"?', array(
'@title' => panels_page_get_title($panel_page),
)), isset($_GET['destination']) ? $_GET['destination'] : 'admin/panels/panel-page', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}
else {
return confirm_form($form, t('Are you sure you want to revert "@title" to its default configuration?', array(
'@title' => panels_page_get_title($panel_page),
)), isset($_GET['destination']) ? $_GET['destination'] : 'admin/panels/panel-page', t('This action cannot be undone.'), t('Revert'), t('Cancel'));
}
}