summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-03-03 20:51:27 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-03-03 20:51:27 +0000
commit198ec98f756673da8c899bb0236a91808ed010ec (patch)
treee4527ed4574134a16683a9c6c665480e81f86e8e /modules/forum
parent96211c616e6a71e208134272cb5266bac5edd31f (diff)
downloadbrdo-198ec98f756673da8c899bb0236a91808ed010ec.tar.gz
brdo-198ec98f756673da8c899bb0236a91808ed010ec.tar.bz2
#18329: Unify confirmation messages (and make them themable)
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.module17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 77a4d82e5..06ed9b38a 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -126,14 +126,17 @@ function forum_taxonomy($op, $type, $object) {
* @param $tid ID of the term to be deleted
*/
function _forum_confirm_del($tid) {
- $term = taxonomy_get_term($tid);
-
- $form .= form_hidden('confirm', 1);
- $form .= form_hidden('tid', $tid);
- $form .= form_submit(t('Delete'));
- $form .= form_submit(t('Cancel'));
+ $term = taxonomy_get_term($tid);
- return form(form_item(t('Delete "%name"', array('%name' => $term->name)), $form, t('Deleteing a forum or container will delete all sub-forums as well. Are you sure you want to delete?')));
+ $extra = form_hidden('tid', $tid);
+ $output = theme('confirm',
+ t('Are you sure you want to delete the forum %name?', array('%name' => '<em>'. $term->name .'</em>')),
+ '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);
+ print theme('page', $output);
}
/**