| Versions | |
|---|---|
| 4.7 – 5 | forum_confirm_delete_submit( |
| 6 – 7 | forum_confirm_delete_submit($form, &$form_state) |
Implementation of forms api _submit call. Deletes a forum after confirmation.
modules/
<?php
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';
}
?>