taxonomy_vocabulary_confirm_delete

Versions
5
taxonomy_vocabulary_confirm_delete($vid)
6
taxonomy_vocabulary_confirm_delete(&$form_state, $vid)
7
taxonomy_vocabulary_confirm_delete($form, &$form_state, $vid)

Form builder for the vocabulary delete confirmation form.

See also

taxonomy_vocabulary_confirm_delete_submit()

Related topics

Code

modules/taxonomy/taxonomy.admin.inc, line 865

<?php
function taxonomy_vocabulary_confirm_delete(&$form_state, $vid) {
  $vocabulary = taxonomy_vocabulary_load($vid);

  $form['type'] = array('#type' => 'value', '#value' => 'vocabulary');
  $form['vid'] = array('#type' => 'value', '#value' => $vid);
  $form['name'] = array('#type' => 'value', '#value' => $vocabulary->name);
  return confirm_form($form,
                  t('Are you sure you want to delete the vocabulary %title?',
                  array('%title' => $vocabulary->name)),
                  'admin/content/taxonomy',
                  t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'),
                  t('Delete'),
                  t('Cancel'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.