Same name and namespace in other branches
  1. 4.7.x modules/taxonomy.module \taxonomy_vocabulary_confirm_delete_submit()
  2. 5.x modules/taxonomy/taxonomy.module \taxonomy_vocabulary_confirm_delete_submit()
  3. 7.x modules/taxonomy/taxonomy.admin.inc \taxonomy_vocabulary_confirm_delete_submit()

Submit handler to delete a vocabulary after confirmation.

See also

taxonomy_vocabulary_confirm_delete()

File

modules/taxonomy/taxonomy.admin.inc, line 885
Administrative page callbacks for the taxonomy module.

Code

function taxonomy_vocabulary_confirm_delete_submit($form, &$form_state) {
  $status = taxonomy_del_vocabulary($form_state['values']['vid']);
  drupal_set_message(t('Deleted vocabulary %name.', array(
    '%name' => $form_state['values']['name'],
  )));
  watchdog('taxonomy', 'Deleted vocabulary %name.', array(
    '%name' => $form_state['values']['name'],
  ), WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/content/taxonomy';
  return;
}