function theme_getlocations_latitude_dms in Get Locations 7
Same name and namespace in other branches
- 7.2 getlocations.module \theme_getlocations_latitude_dms()
Returns HTML of a latitude in decimal degress expressed in degrees, minutes and seconds.
from location module
Parameters
array $variables: An associative array containing:
- latitude: A latitude in decimal degrees.
4 theme calls to theme_getlocations_latitude_dms()
- getlocations_fields_handler_field_coordinates::render in modules/
getlocations_fields/ handlers/ getlocations_fields_handler_field_coordinates.inc - Render the field.
- getlocations_fields_handler_field_latitude::render in modules/
getlocations_fields/ handlers/ getlocations_fields_handler_field_latitude.inc - Render the field.
- getlocations_search_info_sql in modules/
getlocations_search/ getlocations_search.module - theme_getlocations_fields_show in modules/
getlocations_fields/ getlocations_fields.module
File
- ./
getlocations.module, line 7730 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function theme_getlocations_latitude_dms($variables) {
$latitude = $variables['latitude'];
$output = '';
list($degrees, $minutes, $seconds, $negative) = getlocations_dd_to_dms($latitude);
$output .= $degrees . "° " . $minutes . "' " . $seconds . "" ";
if (!$negative) {
$output .= 'N';
}
else {
$output .= 'S';
}
return $output;
}