function ip_geoloc_ip_geoloc_context_convert in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 plugins/contexts/ip_geoloc.inc \ip_geoloc_ip_geoloc_context_convert()
Convert a context into string to be used as keyword by content types, etc.
1 string reference to 'ip_geoloc_ip_geoloc_context_convert'
- ip_geoloc.inc in plugins/
contexts/ ip_geoloc.inc
File
- plugins/
contexts/ ip_geoloc.inc, line 60
Code
function ip_geoloc_ip_geoloc_context_convert($context, $type) {
if (isset($context->data['location'][$type])) {
return $context->data['location'][$type];
}
return NULL;
}