_forum_confirm_delete

  1. drupal
    1. 4.7
Versions
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

▾ 2 functions call _forum_confirm_delete()

forum_form_container in modules/forum.module
Returns a form for adding a container to the forum vocabulary
forum_form_forum in modules/forum.module
Returns a form for adding a forum to the forum vocabulary

Code

modules/forum.module, line 553

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

  $form['tid'] = array(
    '#type' => 'value',
    '#value' => $tid,
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $term->name,
  );

  return confirm_form('forum_confirm_delete', $form, 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 and associated posts as well. This action cannot be undone.'), t('Delete'), t('Cancel'));
}
?>