7 forum.admin.inc forum_confirm_delete_submit($form, &$form_state)
4.7 forum.module forum_confirm_delete_submit($form_id, $form_values)
5 forum.module forum_confirm_delete_submit($form_id, $form_values)
6 forum.admin.inc forum_confirm_delete_submit($form, &$form_state)

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;
}