function theme_location_longitude_dms in Location 7.3
Same name and namespace in other branches
- 5.3 location.module \theme_location_longitude_dms()
- 6.3 location.module \theme_location_longitude_dms()
- 7.5 location.module \theme_location_longitude_dms()
- 7.4 location.module \theme_location_longitude_dms()
Theme callback for longtitude dms.
3 theme calls to theme_location_longitude_dms()
- location_views_handler_field_coordinates::render in handlers/
location_views_handler_field_coordinates.inc - Render the field.
- location_views_handler_field_longitude::render in handlers/
location_views_handler_field_longitude.inc - Render the field.
- template_preprocess_location in ./
location.module - Theme preprocess function for a location.
File
- ./
location.module, line 1904 - Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…
Code
function theme_location_longitude_dms($variables) {
$longitude = $variables['longitude'];
$output = '';
list($degrees, $minutes, $seconds, $negative) = location_dd_to_dms($longitude);
$output .= "{$degrees}° {$minutes}' {$seconds}\" ";
if (!$negative) {
$output .= 'E';
}
else {
$output .= 'W';
}
return $output;
}