function _location_map_link_de_suchen in Location 7.5
Same name and namespace in other branches
- 5.3 supported/location.de.inc \_location_map_link_de_suchen()
- 6.3 supported/location.de.inc \_location_map_link_de_suchen()
- 7.3 supported/location.de.inc \_location_map_link_de_suchen()
- 7.4 supported/location.de.inc \_location_map_link_de_suchen()
1 call to _location_map_link_de_suchen()
- location_map_link_de in supported/
location.de.inc - Parameters: -> $location_a is an associative array that represents a full location where 'street' => the street portions of the location 'supplemental' => additional street portion of the…
File
- supported/
location.de.inc, line 47
Code
function _location_map_link_de_suchen($location = array()) {
$get_query = '?';
$get_query .= 'where=';
$query_parts = array();
if (isset($location['street'])) {
$query_parts[] = $location['street'];
}
if ($location['postal_code'] != '') {
$query_parts[] = $location['postal_code'];
}
if ($location['city'] != '') {
$query_parts[] = $location['city'];
}
// if ($location['number'] != '') {
// $query_parts[] = $location['number'];
// }
$get_query .= urlencode(implode(', ', $query_parts));
return 'http://www.suchen.de/lokalmap' . $get_query;
}