function panels_mini_delete_confirm in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_mini/panels_mini.module \panels_mini_delete_confirm()
Provide a form to confirm deletion of a mini panel.
1 string reference to 'panels_mini_delete_confirm'
- _panels_mini_menu in panels_mini/
panels_mini.admin.inc - Implementation of hook_menu().
File
- panels_mini/
panels_mini.admin.inc, line 233 - Administrative items for the panels mini module.
Code
function panels_mini_delete_confirm(&$form_state, $panel_mini) {
if (!is_object($panel_mini)) {
$panel_mini = panels_mini_load($panel_mini);
}
$form['pid'] = array(
'#type' => 'value',
'#value' => $panel_mini->pid,
);
$form['did'] = array(
'#type' => 'value',
'#value' => $panel_mini->did,
);
return confirm_form($form, t('Are you sure you want to delete the mini panel "@title"?', array(
'@title' => $panel_mini->title,
)), $_GET['destination'] ? $_GET['destination'] : 'admin/panels/panel-mini', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}