You are here

function device_geolocation_help in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 modules/device_geolocation/device_geolocation.module \device_geolocation_help()
  2. 6 modules/device_geolocation/device_geolocation.module \device_geolocation_help()
  3. 7 modules/device_geolocation/device_geolocation.module \device_geolocation_help()

Implements hook_help().

File

modules/device_geolocation/device_geolocation.module, line 126
Provides visitor's geographical location using client device location source that implements W3C Geolocation API and Google Geocoding service.

Code

function device_geolocation_help($path, $arg) {
  switch ($path) {
    case 'admin/help#device_geolocation':
      return '<p>' . t("Provides visitor's geographical location using client device location source \n      that implements W3C Geolocation API whereas the coordinates are geocoded using \n      Google Geocoding service. Google Geocoding returns a more detailed location information \n      such as: street number, postal code, route, neighborhood, locality, sublocality, \n      establishment, administrative area level 1, administrative area level 2, etc.") . '</p><p>' . t("Smart IP is the last fallback if W3C Geolocation API failed. Even if the visitors \n      refuses to share their location, the geographical information provided by Smart IP \n      will be used to know your visitors' geolocation details. A themeable Block content \n      is available to show your visitor's geolocation information. Device Geolocation merges \n      its location data (collected at Google Geocoding service) with Smart IP visitor's \n      location data storage which is in session variable (@session) with array key 'smart_ip' \n      and Drupal @user->data object with array key 'geoip_location'.", array(
        '@session' => '$_SESSION',
        '@user' => '$user',
      )) . '</p>';
      break;
  }
}