This is the respective issue for https://www.drupal.org/project/drupal/issues/742344, a blocker for the #5346 backport, and related to #1040.
Problem/Motivation
Accessibility guidelines recommend specific, meaningful error messages when required form elements are empty. However, FAPI currently does not support custom error messages for required elements.
Proposed resolution
Support a
#required_errorproperty for form elements. If set, this message will be used when a required form element is empty, instead of the default "Field x is required." Additionally set a#required_but_emptyflag automatically during validation when the required field is empty. This is an internal property and is not set manually. It allows#element_validatehandlers to set a custom required error message, but without having to re-implement the complex logic to figure out whether the field value is empty.Remaining tasks
Commit feature and document these properties. The feature is a small API improvement that is applicable to both D8 and D7.
User interface changes
None.
API changes
Minor, backwards-compatible addition only. No existing code will be affected. Addition of two FAPI element properties:
#required_error#required_but_empty
Advocate for this issue: @klonos
Recent comments
In the end, I use my <h1> with my custom layout just before the region for the content and i make a preprocess_theme for site_identity. <?php print theme('site_identity'); ?>...
Block title combo and 2/3 things
Choosing to not use the "Page title combo" block on content can also be helpful if you want to arrange the "Page tabs" menu and "Page title" differently.
Block title combo and 2/3 things
It's not English. It's Globish :-) (Global + English). Like for Drupal Devel is not an option - I looked style guide but for me, it's not interesting. It's useful but it's just a one page...
Create a new theme - Starter theme