function location_map_link_us_yahoo in Location 7.4
Same name and namespace in other branches
- 5.3 supported/location.us.inc \location_map_link_us_yahoo()
- 5 supported/location.us.inc \location_map_link_us_yahoo()
- 6.3 supported/location.us.inc \location_map_link_us_yahoo()
- 7.5 supported/location.us.inc \location_map_link_us_yahoo()
- 7.3 supported/location.us.inc \location_map_link_us_yahoo()
File
- supported/
location.us.inc, line 132
Code
function location_map_link_us_yahoo($location = array()) {
$get_query = '?';
if (isset($location['street'])) {
$get_query .= 'addr=' . urlencode($location['street']) . '&';
}
if ($location['province'] != '' || $location['city'] != '' || $location['postal_code'] != '') {
$get_query .= 'csz=' . _location_us_yahoo_csz_get_field($location) . '&';
}
$get_query .= 'country=' . urlencode($location['country']);
return 'http://maps.yahoo.com/maps_result' . $get_query;
}