You are here

function homebox_admin_page_delete_confirm_submit in Homebox 6.3

Same name and namespace in other branches
  1. 6.2 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()
  2. 7.3 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()
  3. 7.2 homebox.admin.inc \homebox_admin_page_delete_confirm_submit()

Submission of the delete/revert confirmation form

File

./homebox.admin.inc, line 310
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/build/homebox';
}