Skip to content
Snippets Groups Projects
Commit 28011ee9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 1d994a77
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -955,7 +955,7 @@ function hook_field_widget_WIDGET_TYPE_form_alter(&$element, &$form_state, $cont ...@@ -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']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment