function forum_confirm_delete in Drupal 7
Same name and namespace in other branches
- 5 modules/forum/forum.module \forum_confirm_delete()
- 6 modules/forum/forum.admin.inc \forum_confirm_delete()
Form constructor for confirming deletion of a forum taxonomy term.
Parameters
$tid: ID of the term to be deleted.
See also
Related topics
1 string reference to 'forum_confirm_delete'
- forum_form_main in modules/
forum/ forum.admin.inc - Page callback: Returns a form for creating a new forum or container.
File
- modules/
forum/ forum.admin.inc, line 208 - Administrative page callbacks for the Forum module.
Code
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->name,
);
return confirm_form($form, t('Are you sure you want to delete the forum %name?', array(
'%name' => $term->name,
)), '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'));
}