You are here

function ip_geoloc_get_visitor_location in IP Geolocation Views & Maps 8

Same name and namespace in other branches
  1. 7 ip_geoloc_api.inc \ip_geoloc_get_visitor_location()

Return the visitor's location as currently stored in the session.

Return value

array Lat/Lon array from SESSION

5 calls to ip_geoloc_get_visitor_location()
ip_geoloc_distance in ./ip_geoloc_api.inc
Returns the distance (in meters) between two points on the earth's surface.
ip_geoloc_openlayers_layers in ./ip_geoloc.openlayers.inc
Implements hook_openlayers_layers().
ip_geoloc_tokens in ./ip_geoloc.tokens.inc
Implements hook_tokens().
ip_geoloc_views_post_render in ./ip_geoloc.module
Implements hook_views_post_render().
_ip_geoloc_get_field_value in plugins/ip_geoloc.statistics.inc
Better Statistics field callback for IP Geoloc.
1 string reference to 'ip_geoloc_get_visitor_location'
_ip_geoloc_get_field_value in plugins/ip_geoloc.statistics.inc
Better Statistics field callback for IP Geoloc.

File

./ip_geoloc_api.inc, line 561
API functions of IP geolocation module

Code

function ip_geoloc_get_visitor_location() {
  $location = _ip_geoloc_get_session_value('location');
  drupal_alter('ip_geoloc_get_visitor_location', $location);
  return $location;
}