From 7863be5e82ccfbaa4aa9bac2343ad9e560130b44 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 8 Oct 2005 12:21:47 +0000 Subject: - Patch #33433 by chx: fixed a number of form API problems. * Default form value * Leftover debug function in form.inc * PHP5 issue with comment date (I got this patch from another issue) * Validation error fix (was calling legacy form validate) * Lots o' warnings on comment preview * Filter tips plus argument (gremlins. I swear this was not there.) * Message to clear what's going on with system settings * Non-freetagging taxonomies fixed --- modules/system/system.module | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index 8b5a2338b..387c3b195 100644 --- a/modules/system/system.module +++ b/modules/system/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'); } -- cgit v1.2.3