- Patch #1614468 by Jorrit: Fixed hook_field_widget_error() example implementation contains error.
parent
1d994a7737
commit
28011ee90a
|
@ -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.
|
* An associative array containing the current state of the form.
|
||||||
*/
|
*/
|
||||||
function hook_field_widget_error($element, $error, $form, &$form_state) {
|
function hook_field_widget_error($element, $error, $form, &$form_state) {
|
||||||
form_error($element['value'], $error['message']);
|
form_error($element, $error['message']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue