Form constructor for confirming deletion of a forum taxonomy term.
$tid: ID of the term to be deleted.
function forum_confirm_delete($form, &$form_state, $tid) {
$term = taxonomy_term_load($tid);
$form['tid'] = array(
'#type' => 'value',
'#value' => $tid,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $term
->label(),
);
return confirm_form($form, t('Are you sure you want to delete the forum %label?', array(
'%label' => $term
->label(),
)), 'admin/structure/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'),
)), t('Delete'), t('Cancel'));
}