You are here

function ip_geoloc_get_visitor_location in IP Geolocation Views & Maps 7

Same name and namespace in other branches
  1. 8 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

12 calls to ip_geoloc_get_visitor_location()
geofieldProximityGeocoderWithHTML5::getSourceValue in views/proximity_plugins/geofieldProximityGeocoderWithHTML5.inc
ip_geoloc_block_view in ./ip_geoloc_blocks.inc
Implements hook_block_view().
ip_geoloc_distance in ./ip_geoloc_api.inc
Returns the distance (in meters) between two points on the earth's surface.
ip_geoloc_init in ./ip_geoloc.module
Implements hook_init().
ip_geoloc_openlayers_layers in ./ip_geoloc.openlayers.inc
Implements hook_openlayers_layers().

... See full list

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 566
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;
}