function forum_confirm_delete_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/forum.module \forum_confirm_delete_submit()
- 6 modules/forum/forum.admin.inc \forum_confirm_delete_submit()
- 7 modules/forum/forum.admin.inc \forum_confirm_delete_submit()
Implementation of forms api _submit call. Deletes a forum after confirmation.
File
- modules/
forum/ forum.module, line 570 - 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' => $form_values['name'],
)));
watchdog('content', t('forum: deleted %term and all its sub-forums and associated posts.', array(
'%term' => $form_values['name'],
)));
return 'admin/content/forum';
}