diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-22 08:32:28 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-22 08:32:28 +0000 |
commit | fe8b35f52778b63b96c969da27d2929beee8c1b9 (patch) | |
tree | bb7a2a5014006acb1fc893e29299f2dc77918327 /modules/node | |
parent | 39a0ee0264f2e6e88b66e983e53bbf8a98072d3b (diff) | |
download | brdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.gz brdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.bz2 |
#153781: Convert all remaining confirm_forms() to deletion api.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/content_types.inc | 4 | ||||
-rw-r--r-- | modules/node/node.module | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index d4999d637..8340544c5 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -392,7 +392,9 @@ function node_type_delete_confirm(&$form_state, $type) { $caption .= '<p>'. t('This action cannot be undone.') .'</p>'; - return confirm_form($form, $message, 'admin/content/types', $caption, t('Delete')); + $options = array('description' => $caption); + + return confirm_form($form, $message, 'admin/content/types', $options); } /** 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); } /** |