diff options
-rw-r--r-- | includes/form.inc | 1 | ||||
-rw-r--r-- | modules/contact/contact.module | 2 |
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; } |