forum_confirm_delete

Versions
5
forum_confirm_delete($tid)
6
forum_confirm_delete(&$form_state, $tid)
7
forum_confirm_delete($form, &$form_state, $tid)

Returns a confirmation page for deleting a forum taxonomy term.

Parameters

$tid ID of the term to be deleted

Code

modules/forum/forum.admin.inc, line 161

<?php
function forum_confirm_delete(&$form_state, $tid) {
  $term = taxonomy_get_term($tid);

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

  return confirm_form($form, t('Are you sure you want to delete the forum %name?', array('%name' => $term->name)), 'admin/content/forum', t('Deleting a forum or container will also delete its sub-forums, if any. To delete posts in this forum, visit <a href="@content">content administration</a> first. This action cannot be undone.', array('@content' => url('admin/content/node'))), t('Delete'), t('Cancel'));
}
?>
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.