You are here

function ip_geoloc_ip_geoloc_context in IP Geolocation Views & Maps 7

Same name and namespace in other branches
  1. 8 plugins/contexts/ip_geoloc.inc \ip_geoloc_ip_geoloc_context()

Implements hook_context().

1 string reference to 'ip_geoloc_ip_geoloc_context'
ip_geoloc.inc in plugins/contexts/ip_geoloc.inc

File

plugins/contexts/ip_geoloc.inc, line 22

Code

function ip_geoloc_ip_geoloc_context($empty, $data = NULL, $conf = FALSE) {
  $context = new ctools_context('ip_geoloc');
  $context->plugin = 'ip_geoloc';
  if ($empty) {
    return $context;
  }
  $context->data = _ip_geoloc_get_session_value();
  return $context;
}