forum_confirm_delete_submit

Versions
4.7 – 5
forum_confirm_delete_submit($form_id, $form_values)
6 – 7
forum_confirm_delete_submit($form, &$form_state)

Implementation of forms api _submit call. Deletes a forum after confirmation.

Code

modules/forum.module, line 564

<?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';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.