You are here

function geolocation_help in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 geolocation.module \geolocation_help()
  2. 8 geolocation.module \geolocation_help()

Implements hook_help().

File

./geolocation.module, line 14
Defines a simple geolocation field type.

Code

function geolocation_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.geolocation':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Geolocation module allows you to create fields that contain geographical locations.
          See the <a href=":field">Field module help</a> and the <a href=":field_ui">Field UI help</a>
          pages for general information on fields and how to create and manage them.', [
        ':field' => Url::fromRoute('help.page', [
          'name' => 'field',
        ]),
        ':field_ui' => Url::fromRoute('help.page', [
          'name' => 'field_ui',
        ]),
      ]) . '</p>';
      return $output;
  }
  return NULL;
}