You are here

function taxonomy_vocabulary_confirm_delete in Drupal 5

Same name and namespace in other branches
  1. 6 modules/taxonomy/taxonomy.admin.inc \taxonomy_vocabulary_confirm_delete()
  2. 7 modules/taxonomy/taxonomy.admin.inc \taxonomy_vocabulary_confirm_delete()
1 string reference to 'taxonomy_vocabulary_confirm_delete'
taxonomy_admin_vocabulary_edit in modules/taxonomy/taxonomy.module
Page to edit a vocabulary.

File

modules/taxonomy/taxonomy.module, line 371
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_confirm_delete($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($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'));
}