You are here

function forum_confirm_delete_submit in Drupal 7

Same name and namespace in other branches
  1. 4 modules/forum.module \forum_confirm_delete_submit()
  2. 5 modules/forum/forum.module \forum_confirm_delete_submit()
  3. 6 modules/forum/forum.admin.inc \forum_confirm_delete_submit()

Form submission handler for forum_confirm_delete().

File

modules/forum/forum.admin.inc, line 220
Administrative page callbacks for the Forum module.

Code

function forum_confirm_delete_submit($form, &$form_state) {
  taxonomy_term_delete($form_state['values']['tid']);
  drupal_set_message(t('The forum %term and all sub-forums have been deleted.', array(
    '%term' => $form_state['values']['name'],
  )));
  watchdog('content', 'forum: deleted %term and all its sub-forums.', array(
    '%term' => $form_state['values']['name'],
  ));
  $form_state['redirect'] = 'admin/structure/forum';
  return;
}