function forum_confirm_delete_submit
Same name and namespace in other branches
- 7.x drupal-7.x/modules/forum/forum.admin.inc \forum_confirm_delete_submit()
Implementation of forms api _submit call. Deletes a forum after confirmation.
Archivo
- drupal-6.x/
modules/ forum/ forum.admin.inc, line 173 - Administrative page callbacks for the forum module.
Código
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;
}