You are here

function _location_map_link_de_suchen in Location 7.3

Same name and namespace in other branches
  1. 5.3 supported/location.de.inc \_location_map_link_de_suchen()
  2. 6.3 supported/location.de.inc \_location_map_link_de_suchen()
  3. 7.5 supported/location.de.inc \_location_map_link_de_suchen()
  4. 7.4 supported/location.de.inc \_location_map_link_de_suchen()

Map link.

1 call to _location_map_link_de_suchen()
location_map_link_de in supported/location.de.inc
Map link.

File

supported/location.de.inc, line 64
Deutschland.

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'];
  }
  $get_query .= urlencode(implode(', ', $query_parts));
  return 'http://www.suchen.de/lokalmap' . $get_query;
}