Commit 20093d5f authored by Dries's avatar Dries
Browse files

- Patch #111086 by webchick: fix contact module error message.

parent 256ef82d
......@@ -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);
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment