// If the configured update interval has elapsed, we want to invalidate
...
...
@@ -530,7 +521,7 @@ function update_mail($key, &$message, $params) {
$message['body'][]=t('You can automatically install your missing updates using the Update manager:',array(),array('langcode'=>$langcode))."\n".url('admin/reports/updates/update',array('absolute'=>TRUE,'language'=>$language));
$message['body'][]=t('Your site is currently configured to send these emails when any updates are available. To get notified only for security updates, !url.',array('!url'=>$settings_url));
'#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.'),
@@ -50,14 +51,7 @@ 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=system_settings_form($form);
// Custom validation callback for the email notification setting.
$form['#validate'][]='update_settings_validate';
// We need to call our own submit callback first, not the one from
// system_settings_form(), so that we can process and save the emails.
unset($form['#submit']);
return$form;
returnsystem_config_form($form,$form_state);
}
/**
...
...
@@ -68,6 +62,7 @@ function update_settings($form) {