You are here

function age_field_formatter_help in Age Field Formatter 8.2

Same name and namespace in other branches
  1. 8 age_field_formatter.module \age_field_formatter_help()
  2. 3.0.x age_field_formatter.module \age_field_formatter_help()

Implements hook_help().

File

./age_field_formatter.module, line 13
Field hooks to implement a date field formatter to calculate and display the age.

Code

function age_field_formatter_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the age_field_formatter module.
    case 'help.page.age_field_formatter':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Age Field Formatter calculates and formats the display of a date field to display the age. It also offers the option to display both the date with the age, along with the possibility to add the “years” suffix to the age value.') . '</p>';
      $output .= '<p>' . t('This is a date field formatter. You can access the field format in the content type Manage display tab.') . '</p>';
      return $output;
    default:
  }
}