function taxonomy_vocabulary_confirm_delete_submit

Submit handler to delete a vocabulary after confirmation.

See also

taxonomy_vocabulary_confirm_delete()

1 string reference to 'taxonomy_vocabulary_confirm_delete_submit'
taxonomy_vocabulary_confirm_delete in drupal/core/modules/taxonomy/taxonomy.admin.inc
Form builder for the vocabulary delete confirmation form.

File

drupal/core/modules/taxonomy/taxonomy.admin.inc, line 476
Administrative page callbacks for the taxonomy module.

Code

function taxonomy_vocabulary_confirm_delete_submit($form, &$form_state) {
  $form_state['taxonomy']['vocabulary']
    ->delete();
  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/structure/taxonomy';
  cache_invalidate_tags(array(
    'content' => TRUE,
  ));
  return;
}