diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-03 20:51:27 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-03 20:51:27 +0000 |
commit | 198ec98f756673da8c899bb0236a91808ed010ec (patch) | |
tree | e4527ed4574134a16683a9c6c665480e81f86e8e /modules/forum/forum.module | |
parent | 96211c616e6a71e208134272cb5266bac5edd31f (diff) | |
download | brdo-198ec98f756673da8c899bb0236a91808ed010ec.tar.gz brdo-198ec98f756673da8c899bb0236a91808ed010ec.tar.bz2 |
#18329: Unify confirmation messages (and make them themable)
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 17 |
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); } /** |