You are here

function inline_form_errors_help in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/inline_form_errors/inline_form_errors.module \inline_form_errors_help()

Implements hook_help().

File

core/modules/inline_form_errors/inline_form_errors.module, line 13
Enables inline form errors.

Code

function inline_form_errors_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    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>';
      return $output;
  }
}