function forum_confirm_delete_submit in Drupal 6
Same name and namespace in other branches
- 4 modules/forum.module \forum_confirm_delete_submit()
- 5 modules/forum/forum.module \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.admin.inc, line 173 - Administrative page callbacks for the forum module.
Code
function forum_confirm_delete_submit($form, &$form_state) {
taxonomy_del_term($form_state['values']['tid']);
drupal_set_message(t('The forum %term and all sub-forums and associated posts have been deleted.', array(
'%term' => $form_state['values']['name'],
)));
watchdog('content', 'forum: deleted %term and all its sub-forums and associated posts.', array(
'%term' => $form_state['values']['name'],
));
$form_state['redirect'] = 'admin/content/forum';
return;
}