You are here

function _taxonomy_confirm_del_term in Drupal 4

1 call to _taxonomy_confirm_del_term()
taxonomy_admin_term_edit in modules/taxonomy.module
Page to list terms for a vocabulary

File

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

Code

function _taxonomy_confirm_del_term($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('taxonomy_term_confirm_delete', $form, t('Are you sure you want to delete the term %title?', array(
    '%title' => theme('placeholder', $term->name),
  )), 'admin/taxonomy', t('Deleting a term will delete all its children if there are any. This action cannot be undone.'), t('Delete'), t('Cancel'));
}