_taxonomy_confirm_del_vocabulary

  1. drupal
    1. 4.7
Versions
4.7 _taxonomy_confirm_del_vocabulary($vid)

Code

modules/taxonomy.module, line 327

<?php
function _taxonomy_confirm_del_vocabulary($vid) {
  $vocabulary = taxonomy_get_vocabulary($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('taxonomy_vocabulary_confirm_delete', $form, 
                  t('Are you sure you want to delete the vocabulary %title?', 
                  array('%title' => theme('placeholder', $vocabulary->name))), 
                  'admin/taxonomy', t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'), 
                  t('Delete'), 
                  t('Cancel'));
}
?>