On this page
function taxonomy_term_confirm_delete_submit
taxonomy_term_confirm_delete_submit($form, &$form_state)
Submit handler to delete a term after confirmation.
See also
taxonomy_term_confirm_delete()
File
- modules/taxonomy/taxonomy.admin.inc, line 898
- Administrative page callbacks for the taxonomy module.
Code
function taxonomy_term_confirm_delete_submit($form, &$form_state) {
taxonomy_term_delete($form_state['values']['tid']);
taxonomy_check_vocabulary_hierarchy($form['#vocabulary'], $form_state['values']);
drupal_set_message(t('Deleted term %name.', array('%name' => $form_state['values']['name'])));
watchdog('taxonomy', 'Deleted term %name.', array('%name' => $form_state['values']['name']), WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/structure/taxonomy';
cache_clear_all();
return;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.admin.inc/function/taxonomy_term_confirm_delete_submit/7.x