function ip_geoloc_smart_ip_get_location_alter in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 ip_geoloc.module \ip_geoloc_smart_ip_get_location_alter()
Implements hook_smart_ip_get_location_alter().
Called from the bottom of smart_ip_get_location() when it has fleshed out the $location array as much as it can. Used here to format the address.
File
- ./
ip_geoloc.module, line 719 - IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…
Code
function ip_geoloc_smart_ip_get_location_alter(&$location) {
if (empty($location['postal_code']) && isset($location['zip'])) {
$location['postal_code'] = $location['zip'];
}
ip_geoloc_format_address($location);
ip_geoloc_debug(t('IPGV&M: Smart IP retrieved: !location', array(
'!location' => ip_geoloc_pretty_print($location),
)));
}