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/system/system.module | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'modules/system/system.module') 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' => '

'. t('The following modules will be completely uninstalled from your site, and all data from these modules will be lost!') .'

'. 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; } } -- cgit v1.2.3