function ip_geoloc_help in IP Geolocation Views & Maps 8
Same name and namespace in other branches
- 7 ip_geoloc.module \ip_geoloc_help()
Implements hook_help().
File
- ./
ip_geoloc.module, line 65 - IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported and available through this module. Using a number of optional sources IPGV&M also retrieves…
Code
function ip_geoloc_help($route_name, RouteMatchInterface $route_match) {
if ($route_match
->getRouteName() == 'admin/help#ip_geoloc') {
$project_url = Link::fromTextAndUrl('http://drupal.org/project/ip_geoloc', 'http://drupal.org/project/ip_geoloc')
->toString();
$readme_url = Link::fromTextAndUrl(drupal_get_path('module', 'ip_geoloc') . '/README.txt', drupal_get_path('module', 'ip_geoloc') . '/README.txt')
->toString();
return t('Detailed information is on the <a href="@ip_geoloc">IP Geolocation project page</a> and in the <a href="@README">README</a> file', [
'@ip_geoloc' => $project_url,
'@README' => $readme_url,
]);
}
}