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

8.0.x
Dries 2012-06-03 15:29:19 -04:00
parent 1d994a7737
commit 28011ee90a
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}