function location_map_link_ch_search in Location 7.4
Same name and namespace in other branches
- 5.3 supported/location.ch.inc \location_map_link_ch_search()
- 6.3 supported/location.ch.inc \location_map_link_ch_search()
- 7.5 supported/location.ch.inc \location_map_link_ch_search()
- 7.3 supported/location.ch.inc \location_map_link_ch_search()
File
- supported/
location.ch.inc, line 72
Code
function location_map_link_ch_search($location = array()) {
$query_param = '';
if ($location['postal_code'] || $location['city'] || $location['street']) {
$query_param = $location['postal_code'] . '-' . $location['city'] . '/' . $location['street'];
return 'http://map.search.ch/' . $query_param;
}
else {
return NULL;
}
}