inline_form_errors.module
File
-
core/
modules/ inline_form_errors/ inline_form_errors.module
View source
<?php
/**
* @file
*/
/**
* Populates form errors in the template.
*/
function _inline_form_errors_set_errors(&$variables) : void {
$element = $variables['element'];
if (!empty($element['#errors']) && empty($element['#error_no_message'])) {
$variables['errors'] = $element['#errors'];
}
}
Functions
| Title | Deprecated | Summary |
|---|---|---|
| _inline_form_errors_set_errors | Populates form errors in the template. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.