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)

Implement forms api _submit call. Deletes a forum after confirmation.

Code

modules/forum/forum.admin.inc, line 189

<?php
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;
}
?>
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.