summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-06-22 08:32:28 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-06-22 08:32:28 +0000
commitfe8b35f52778b63b96c969da27d2929beee8c1b9 (patch)
treebb7a2a5014006acb1fc893e29299f2dc77918327 /modules/system/system.module
parent39a0ee0264f2e6e88b66e983e53bbf8a98072d3b (diff)
downloadbrdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.gz
brdo-fe8b35f52778b63b96c969da27d2929beee8c1b9.tar.bz2
#153781: Convert all remaining confirm_forms() to deletion api.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module20
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 3b221f204..2d1f019ae 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1641,14 +1641,18 @@ function system_modules_confirm_form($modules, $storage) {
$form['text'] = array('#value' => theme('item_list', $items));
if ($form) {
+ $options = array(
+ 'description' => t('Would you like to continue with enabling the above?'),
+ 'yes' => t('Continue'),
+ );
+
// Set some default form values
$form = confirm_form(
$form,
t('Some required modules must be enabled'),
'admin/build/modules',
- t('Would you like to continue with enabling the above?'),
- t('Continue'),
- t('Cancel'));
+ $options);
+
return $form;
}
}
@@ -1929,13 +1933,17 @@ function system_modules_uninstall_confirm_form($storage) {
$form['#confirmed'] = TRUE;
$form['uninstall']['#tree'] = TRUE;
$form['modules'] = array('#value' => '<p>'. t('The following modules will be completely uninstalled from your site, and <em>all data from these modules will be lost</em>!') .'</p>'. theme('item_list', $uninstall));
+
+ $options = array(
+ 'description' => t('Would you like to continue with uninstalling the above?'),
+ 'yes' => t('Uninstall')
+ );
+
$form = confirm_form(
$form,
t('Confirm uninstall'),
'admin/build/modules/uninstall',
- t('Would you like to continue with uninstalling the above?'),
- t('Uninstall'),
- t('Cancel'));
+ $options);
return $form;
}
}