1 taxonomy.admin.inc taxonomy_vocabulary_confirm_delete_submit($form, &$form_state)

Submit handler to delete a vocabulary after confirmation.

See also

taxonomy_vocabulary_confirm_delete()

File

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

Code

function taxonomy_vocabulary_confirm_delete_submit($form, &$form_state) {
  $vocabulary = $form['#vocabulary'];
  $vocabulary->delete();
  backdrop_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';
}