summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-03 19:53:01 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-03 19:53:01 +0000
commit20093d5fc84378634c4b21efb73c867a56cbbc47 (patch)
tree34633bcdbe6a4c8d6381885fa310bb89fd71abd0
parent256ef82dc238be3782afd5ce6e1af1525d9388f9 (diff)
downloadbrdo-20093d5fc84378634c4b21efb73c867a56cbbc47.tar.gz
brdo-20093d5fc84378634c4b21efb73c867a56cbbc47.tar.bz2
- Patch #111086 by webchick: fix contact module error message.
-rw-r--r--includes/form.inc1
-rw-r--r--modules/contact/contact.module2
2 files changed, 1 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 82261eb6c..608fe755e 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -672,7 +672,6 @@ function form_get_error($element) {
* Flag an element as having an error.
*/
function form_error(&$element, $message = '') {
- $element['#error'] = TRUE;
form_set_error(implode('][', $element['#parents']), $message);
}
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index fc04d9892..a64cf4116 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -472,7 +472,7 @@ function contact_mail_page() {
);
}
else {
- $form['#error'] = array('#value' => t('The contact form has not been configured.'));
+ drupal_set_message(t('The contact form has not been configured. <a href="@add">Add one or more categories</a> to the form.', array('@add' => url('admin/build/contact/add'))), 'error');
}
return $form;
}