1 taxonomy.admin.inc taxonomy_vocabulary_confirm_delete($form, &$form_state, $vocabulary)

Form builder for the vocabulary delete confirmation form.

See also

taxonomy_vocabulary_confirm_delete_submit()

Related topics

File

core/modules/taxonomy/taxonomy.admin.inc, line 1112
Admin page callbacks for the Taxonomy module.

Code

function taxonomy_vocabulary_confirm_delete($form, &$form_state, $vocabulary) {
  $form['#vocabulary'] = $vocabulary;
  $form['type'] = array('#type' => 'value', '#value' => 'vocabulary');
  $form['name'] = array('#type' => 'value', '#value' => $vocabulary->name);
  $form['#submit'] = array('taxonomy_vocabulary_confirm_delete_submit');
  return confirm_form($form, 
  t('Are you sure you want to delete the vocabulary %title?', 
  array('%title' => $vocabulary->name)), 
  'admin/structure/taxonomy', 
  t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'), 
  t('Delete'), 
  t('Cancel'));
}