Commit 985736ca authored by xjm's avatar xjm

Issue #2888189 by ifrik, andrewmacpherson, dmsmidt, oadaeh, martin107, pk188,...

Issue #2888189 by ifrik, andrewmacpherson, dmsmidt, oadaeh, martin107, pk188, John Cook, xjm, mgifford, Poumelie: Update hook_help and DO docs for Inline Form Errors
parent bbc87431
type: module
name: Inline Form Errors
description: 'Adds WCAG 2.0 accessibility compliance for web form errors, but some functionality might not work.'
description: 'Places error messages adjacent to form inputs, for improved usability and accessibility.'
version: VERSION
core: 8.x
package: Core (Experimental)
......@@ -15,7 +15,13 @@ function inline_form_errors_help($route_name, RouteMatchInterface $route_match)
case 'help.page.inline_form_errors':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Inline Form Errors module provides an experimental approach to form errors, placing the error messages next to the elements themselves. For more information, see the <a href=":inline_form_error">online documentation for the Inline Form Errors module</a>.', [':inline_form_error' => 'https://www.drupal.org/documentation/modules/inline_form_error']) . '</p>';
$output .= '<p>' . t('The Inline Form Errors module makes it easier for users to identify which errors need to be resolved by providing a summary of all errors and by placing the individual error messages next to the form elements themselves. For more information, see the <a href=":inline_form_error">online documentation for the Inline Form Errors module</a>.', [':inline_form_error' => 'https://www.drupal.org/docs/8/core/modules/inline-form-errors']) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Displaying error messages') . '</dt>';
$output .= '<dd>' . t('When a form is not filled in correctly (for example, if a required field is left blank), a warning message is displayed at the top of the form. This message links to the affected form elements, and individual error messages are displayed next to each form element.') . '</dd>';
$output .= '<dt>' . t('Displaying error messages in browsers with HTML5 form validation') . '</dt>';
$output .= '<dd>' . t('In browsers that support HTML5 form validation, users will first see the error messages generated by their browser. In this case, the inline form error messages are only displayed after the HTML5 validation errors have been resolved.') . '</dd>';
return $output;
}
}
......
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