function smart_ip_help in Smart IP 8.2
Same name and namespace in other branches
- 8.4 smart_ip.module \smart_ip_help()
- 8.3 smart_ip.module \smart_ip_help()
- 6.2 smart_ip.module \smart_ip_help()
- 6 smart_ip.module \smart_ip_help()
- 7.2 smart_ip.module \smart_ip_help()
- 7 smart_ip.module \smart_ip_help()
Implements hook_help().
File
- ./
smart_ip.module, line 28 - Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address
Code
function smart_ip_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.smart_ip':
return $output = '<p>' . t("Smart IP identify visitor's geographical location (longitude/latitude), \n country, region, city and postal code based on the IP address of the user. \n These information will be stored at session variable ($_SESSION) with \n array key 'smart_ip' and Drupal $user->data object with array key \n 'geoip_location' of the user but optionally it can be disabled (by role) \n at Smart IP admin page. Other modules can use the function \n smart_ip_get_location($ip_address) that returns an array containing \n the visitor's ISO 3166 2-character country code, longitude, latitude, \n region, city and postal code. It provides a feature for you to perform \n your own IP lookup and admin spoofing of an arbitrary IP for testing \n purposes.") . '</p>';
return $output;
case 'smart_ip.settings':
$output = '<p>' . t('Configure the Smart IP settings') . '</p>';
return $output;
}
return '';
}