function homebox_admin_page_delete_confirm in Homebox 7.3
Same name and namespace in other branches
- 6.3 homebox.admin.inc \homebox_admin_page_delete_confirm()
- 6.2 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 - Implements hook_menu().
File
- ./
homebox.admin.inc, line 310 - Homebox admin file, takes care admin interface for homebox
Code
function homebox_admin_page_delete_confirm($form, &$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/structure/homebox', $caption, ucfirst($form['#operation']));
}