function getdirections_load_location in Get Directions 7.3
Same name and namespace in other branches
- 7.2 getdirections.module \getdirections_load_location()
Load a location
Parameters
int $lid:
Return value
array
1 call to getdirections_load_location()
- getdirections_setlocation_id in ./
getdirections.module - Function to setup the map and form
File
- ./
getdirections.module, line 1725 - Fetches google map directions.
Code
function getdirections_load_location($lid) {
$location = '';
if (module_exists('getlocations_fields')) {
$location = getlocations_fields_load_location($lid);
}
elseif (module_exists('location')) {
$location = location_load_location($lid);
}
return $location;
}