function homebox_admin_page_delete_confirm_submit in Homebox 7.2
Same name and namespace in other branches
- 6.3 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()
- 6.2 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()
- 7.3 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()
Submission of the delete/revert confirmation form
File
- ./
homebox.admin.inc, line 321 - Homebox admin file, takes care admin interface for homebox
Code
function homebox_admin_page_delete_confirm_submit($form, &$form_state) {
// Delete/revert the page
homebox_delete_page($form['#page']->name);
if ($form['#operation'] == t('revert')) {
drupal_set_message(t('The page has been reverted.'));
}
else {
drupal_set_message(t('The page has been deleted.'));
}
menu_rebuild();
$form_state['redirect'] = 'admin/structure/homebox';
}