You are here

function forum_confirm_delete_submit in Drupal 4

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

Implementation of forms api _submit call. Deletes a forum after confirmation.

File

modules/forum.module, line 564
Enable threaded discussions about general topics.

Code

function forum_confirm_delete_submit($form_id, $form_values) {
  taxonomy_del_term($form_values['tid']);
  drupal_set_message(t('The forum %term and all sub-forums and associated posts have been deleted.', array(
    '%term' => theme('placeholder', $form_values['name']),
  )));
  watchdog('content', t('forum: deleted %term and all its sub-forums and associated posts.', array(
    '%term' => theme('placeholder', $form_values['name']),
  )));
  return 'admin/forum';
}