_forum_confirm_delete

Versions
4.6 – 4.7
_forum_confirm_delete($tid)

Returns a confirmation page for deleting a forum taxonomy term

Parameters

$tid ID of the term to be deleted

Code

modules/forum.module, line 132

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

  $extra = form_hidden('tid', $tid);
  $output = theme('confirm',
                  t('Are you sure you want to delete the forum %name?', array('%name' => theme('placeholder', $term->name))),
                  'admin/forums',
                  t('Deleting a forum or container will delete all sub-forums as well. 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.