smart_ip_views_bridge_handler_field_longitude.inc in Smart IP 6
Same filename and directory in other branches
Contains the 'smart_ip_views_bridge_handler_field_longitude' markup field handler.
File
modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_longitude.incView source
<?php
// $Id$
/**
* @file
* Contains the 'smart_ip_views_bridge_handler_field_longitude' markup field handler.
*/
/**
* Field handler to display visitor's longitude.
*/
class smart_ip_views_bridge_handler_field_longitude extends smart_ip_views_bridge_handler_field_coordinates {
function construct() {
parent::construct();
}
function render($values) {
$smart_ip_session = smart_ip_session_get('smart_ip');
if ($this->options['style'] == 'dd') {
return $smart_ip_session['location']['longitude'];
}
else {
return theme('smart_ip_longitude_dms', $smart_ip_session['location']['longitude']);
}
}
}
Classes
Name![]() |
Description |
---|---|
smart_ip_views_bridge_handler_field_longitude | Field handler to display visitor's longitude. |