diff options
Diffstat (limited to 'modules/system.module')
-rw-r--r-- | modules/system.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/system.module b/modules/system.module index 8b5a2338b..387c3b195 100644 --- a/modules/system.module +++ b/modules/system.module @@ -637,6 +637,10 @@ function system_settings_form($form_id, $form) { $form['buttons']['submit'] = array(type => 'submit', value => t('Save configuration') ); $form['buttons']['reset'] = array(type => 'submit', value => t('Reset to defaults') ); + if (!empty($_POST) && form_get_errors()) { + drupal_set_message(t('Your settings are not saved because of the errors above'), 'error'); + } + return drupal_get_form($form_id, $form, 'system_settings_form'); } |