function forum_confirm_delete_submit

Form submission handler for forum_confirm_delete().

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.