function theme_smart_ip_longitude_dms in Smart IP 8.2
Same name and namespace in other branches
- 8.4 smart_ip.module \theme_smart_ip_longitude_dms()
- 8.3 smart_ip.module \theme_smart_ip_longitude_dms()
- 6.2 smart_ip.module \theme_smart_ip_longitude_dms()
- 6 smart_ip.module \theme_smart_ip_longitude_dms()
- 7.2 smart_ip.module \theme_smart_ip_longitude_dms()
- 7 smart_ip.module \theme_smart_ip_longitude_dms()
Display longitude.
File
- ./
smart_ip.module, line 176 - Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address
Code
function theme_smart_ip_longitude_dms($variable) {
$output = '';
list($degrees, $minutes, $seconds, $negative) = coordinates_dd_to_dms($variable['longitude']);
$output .= "{$degrees}° {$minutes}' {$seconds}\" ";
if (!$negative) {
$output .= 'E';
}
else {
$output .= 'W';
}
return $output;
}