You are here

function taxonomy_term_confirm_delete in Drupal 5

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

File

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

Code

function taxonomy_term_confirm_delete($tid) {
  $term = taxonomy_get_term($tid);
  $form['type'] = array(
    '#type' => 'value',
    '#value' => 'term',
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $term->name,
  );
  $form['tid'] = array(
    '#type' => 'value',
    '#value' => $tid,
  );
  return confirm_form($form, t('Are you sure you want to delete the term %title?', array(
    '%title' => $term->name,
  )), 'admin/content/taxonomy', t('Deleting a term will delete all its children if there are any. This action cannot be undone.'), t('Delete'), t('Cancel'));
}