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/node/node.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 7bc971b97..aa2f79ede 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1078,8 +1078,13 @@ function node_configure_validate($form, &$form_state) { * Menu callback: confirm rebuilding of permissions. */ function node_configure_rebuild_confirm() { + $options = array( + 'description' => t('This will wipe all current node permissions and rebuild them based on current settings. Rebuilding the permissions may take a while so please be patient. This action cannot be undone.'), + 'yes' => t('Rebuild permissions') + ); + return confirm_form(array(), t('Are you sure you want to rebuild node permissions on the site?'), - 'admin/content/node-settings', t('This will wipe all current node permissions and rebuild them based on current settings. Rebuilding the permissions may take a while so please be patient. This action cannot be undone.'), t('Rebuild permissions'), t('Cancel')); + 'admin/content/node-settings', $options); } /** -- cgit v1.2.3