taxonomy_vocabulary_confirm_delete_submit
modules/taxonomy/taxonomy.admin.inc, строка 885
- Версии
- 5
taxonomy_vocabulary_confirm_delete_submit(
$form_id,$form_values)- 6
taxonomy_vocabulary_confirm_delete_submit($form, &$form_state)
Submit handler to delete a vocabulary after confirmation.
See also
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии