From fe8b35f52778b63b96c969da27d2929beee8c1b9 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 22 Jun 2007 08:32:28 +0000 Subject: #153781: Convert all remaining confirm_forms() to deletion api. --- modules/forum/forum.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 893cc3821..2130a2ea7 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -610,7 +610,9 @@ function forum_confirm_delete(&$form_state, $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 delete all sub-forums and associated posts as well. This action cannot be undone.'), t('Delete'), t('Cancel')); + $options = array('description' => t('Deleting a forum or container will delete all sub-forums and associated posts as well. This action cannot be undone.')); + + return confirm_form($form, t('Are you sure you want to delete the forum %name?', array('%name' => $term->name)), 'admin/content/forum', $options); } /** -- cgit v1.2.3