function forum_confirm_delete_submit in Drupal 7
Same name and namespace in other branches
- 4 modules/forum.module \forum_confirm_delete_submit()
- 5 modules/forum/forum.module \forum_confirm_delete_submit()
- 6 modules/forum/forum.admin.inc \forum_confirm_delete_submit()
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;
}