summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-02 01:05:11 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-02 01:05:11 +0000
commitcfc96df9a7181526cb1c71cf4e39886026c668fe (patch)
treeb63d9c11b82f7052ef9ba3640acff9de7e5f1112 /modules
parent810b8512c5bc798abb34094a63fa442b60626b1a (diff)
downloadbrdo-cfc96df9a7181526cb1c71cf4e39886026c668fe.tar.gz
brdo-cfc96df9a7181526cb1c71cf4e39886026c668fe.tar.bz2
- Patch #648394 by jhodgdon, dww: improved order of fields on update config page.
Diffstat (limited to 'modules')
-rw-r--r--modules/update/update.settings.inc30
1 files changed, 15 insertions, 15 deletions
diff --git a/modules/update/update.settings.inc b/modules/update/update.settings.inc
index 38233ed20..4fd8d0e87 100644
--- a/modules/update/update.settings.inc
+++ b/modules/update/update.settings.inc
@@ -10,15 +10,6 @@
* Form builder for the update settings tab.
*/
function update_settings($form) {
- $notify_emails = variable_get('update_notify_emails', array());
- $form['update_notify_emails'] = array(
- '#type' => 'textarea',
- '#title' => t('E-mail addresses to notify when updates are available'),
- '#rows' => 4,
- '#default_value' => implode("\n", $notify_emails),
- '#description' => t('Whenever your site checks for available updates and finds new releases, it can notify a list of users via e-mail. Put each address on a separate line. If blank, no e-mails will be sent.'),
- );
-
$form['update_check_frequency'] = array(
'#type' => 'radios',
'#title' => t('Check for updates'),
@@ -30,6 +21,21 @@ function update_settings($form) {
'#description' => t('Select how frequently you want to automatically check for new releases of your currently installed modules and themes.'),
);
+ $form['update_check_disabled'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Check for updates of disabled modules and themes'),
+ '#default_value' => variable_get('update_check_disabled', FALSE),
+ );
+
+ $notify_emails = variable_get('update_notify_emails', array());
+ $form['update_notify_emails'] = array(
+ '#type' => 'textarea',
+ '#title' => t('E-mail addresses to notify when updates are available'),
+ '#rows' => 4,
+ '#default_value' => implode("\n", $notify_emails),
+ '#description' => t('Whenever your site checks for available updates and finds new releases, it can notify a list of users via e-mail. Put each address on a separate line. If blank, no e-mails will be sent.'),
+ );
+
$form['update_notification_threshold'] = array(
'#type' => 'radios',
'#title' => t('E-mail notification threshold'),
@@ -41,12 +47,6 @@ function update_settings($form) {
'#description' => t('You can choose to send e-mail only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href="@status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', array('@status_report' => url('admin/reports/status')))
);
- $form['update_check_disabled'] = array(
- '#type' => 'checkbox',
- '#title' => t('Check for updates of disabled modules and themes'),
- '#default_value' => variable_get('update_check_disabled', FALSE),
- );
-
$form = system_settings_form($form, FALSE);
// Custom validation callback for the email notification setting.
$form['#validate'][] = 'update_settings_validate';