_taxonomy_confirm_del_term

  1. drupal
    1. 4.7
Versions
4.7 _taxonomy_confirm_del_term($tid)

Code

modules/taxonomy.module, line 513

<?php
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'));
}
?>