You are here

function smart_ip_views_bridge_handler_field_city::render in Smart IP 6.2

Same name and namespace in other branches
  1. 6 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_city.inc \smart_ip_views_bridge_handler_field_city::render()
  2. 7.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_city.inc \smart_ip_views_bridge_handler_field_city::render()

File

modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_city.inc, line 28
Contains the 'smart_ip_views_bridge_handler_field_city' field handler.

Class

smart_ip_views_bridge_handler_field_city
Field handler to display visitor's city.

Code

function render($values) {
  $smart_ip_session = smart_ip_session_get('smart_ip');
  return $smart_ip_session['location']['city'];
}