Commit 28011ee9 authored by Dries's avatar Dries

- Patch #1614468 by Jorrit: Fixed hook_field_widget_error() example implementation contains error.

parent 1d994a77
......@@ -955,7 +955,7 @@ function hook_field_widget_WIDGET_TYPE_form_alter(&$element, &$form_state, $cont
* An associative array containing the current state of the form.
*/
function hook_field_widget_error($element, $error, $form, &$form_state) {
form_error($element['value'], $error['message']);
form_error($element, $error['message']);
}
......
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