You are here

function hook_ip_geoloc_get_visitor_location_alter in IP Geolocation Views & Maps 7

Alter the visitor's location attributes.

Parameters

array $location: an array with with keys for latitude, longitude, popup and tooltip.

1 invocation of hook_ip_geoloc_get_visitor_location_alter()
ip_geoloc_get_visitor_location in ./ip_geoloc_api.inc
Return the visitor's location as currently stored in the session.

File

./ip_geoloc.api.php, line 77
Hooks provided by "IP Geolocation Views & Maps" (ip_geoloc).

Code

function hook_ip_geoloc_get_visitor_location_alter(&$location) {
  $location['latitude'] = 46.734;
  $location['longitude'] = 8.957000000000001;
  $location['popup'] = t('Your current location');
  $location['tooltip'] = t('Current location');
}