You are here

function _ip_geoloc_get_session_value in IP Geolocation Views & Maps 7

Get a value from the user's SESSION or all values, if no name is specified.

Parameters

string $name: The name of the variable to retrieve

Return value

mixed The session value belonging to $name or all session values when name is omittted.

8 calls to _ip_geoloc_get_session_value()
ip_geoloc_current_location_ajax_recipient in ./ip_geoloc.module
Data recipient for javascript function getLocation().
ip_geoloc_get_visitor_location in ./ip_geoloc_api.inc
Return the visitor's location as currently stored in the session.
ip_geoloc_ip_geoloc_context in plugins/contexts/ip_geoloc.inc
Implements hook_context().
ip_geoloc_is_first_click in ./ip_geoloc.module
Returns whether this was the first click of the session.
ip_geoloc_log_errors in ./ip_geoloc.module
Log errors via the watchdog.

... See full list

File

./ip_geoloc.session.inc, line 97
ip_geoloc.session.inc

Code

function _ip_geoloc_get_session_value($name = NULL) {
  $variables = _ip_geoloc_set_session_value(NULL);
  return empty($name) ? $variables : (isset($variables[$name]) ? $variables[$name] : NULL);
}