forum_confirm_delete_submit
Definition
forum_confirm_delete_submit($form_id, $form_values)
modules/forum.module, line 564
Description
Implementation of forms api _submit call. Deletes a forum after confirmation.
Code
<?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';
}
?> 