_taxonomy_confirm_del_term

Versions
4.6 – 4.7
_taxonomy_confirm_del_term($tid)

▾ 1 function calls _taxonomy_confirm_del_term()

taxonomy_admin in modules/taxonomy.module
Menu callback; dispatches to the proper taxonomy administration function.

Code

modules/taxonomy.module, line 325

<?php
function _taxonomy_confirm_del_term($tid) {
  $term = taxonomy_get_term($tid);

  $extra  = form_hidden('type', 'term');
  $extra .= form_hidden('tid', $tid);

  $output = theme('confirm',
                  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'),
                  $extra);

  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.