function homebox_admin_page_delete_confirm in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.admin.inc \homebox_admin_page_delete_confirm()
- 7.3 homebox.admin.inc \homebox_admin_page_delete_confirm()
- 7.2 homebox.admin.inc \homebox_admin_page_delete_confirm()
Confirmation form to delete/revert a homebox page.
Return value
A confirmation form to delete homebox page
1 string reference to 'homebox_admin_page_delete_confirm'
- homebox_menu in ./
homebox.module - Implementation of hook_menu().
File
- ./
homebox.admin.inc, line 292 - Homebox admin file, takes care admin interface for homebox
Code
function homebox_admin_page_delete_confirm(&$form_state, $page) {
$form['#operation'] = homebox_page_is_api($page->name) ? t('revert') : t('delete');
$form['#page'] = $page;
$caption .= '<p>' . t('This action cannot be undone.') . '</p>';
return confirm_form($form, t('Are you sure you want to !operation homebox page %title?', array(
'!operation' => $form['#operation'],
'%title' => $page->settings['title'],
)), 'admin/build/homebox', $caption, ucfirst($form['#operation']));
}