function getdirections_load_locations in Get Directions 7.2
Same name and namespace in other branches
- 7.3 getdirections.module \getdirections_load_locations()
10 calls to getdirections_load_locations()
- getdirections_comment_setlocation in ./
getdirections.module - Function to setup the map and form
- getdirections_n2u_setlocation in ./
getdirections.module - Function to setup the map
- getdirections_setlocation in ./
getdirections.module - Function to setup the map and form
- getdirections_setlocations in ./
getdirections.module - Function to setup the map
- getdirections_setlocations_via in ./
getdirections.module - Function to setup the map to display waypoints
File
- ./
getdirections.module, line 1638 - Fetches google map directions.
Code
function getdirections_load_locations($id, $key = 'vid') {
$locations = '';
$module = getdirections_get_current_supported_module();
if ($module == 'getlocations_fields') {
$locations = getlocations_fields_load_locations($id, $key);
}
elseif ($module == 'location_node' || $module == 'location_cck') {
$locations = location_load_locations($id, $key);
}
elseif ($module == 'geofield') {
$locations = getdirections_other_load_locations($id, $key, 'geofield');
}
elseif ($module == 'geolocation') {
$locations = getdirections_other_load_locations($id, $key, 'geolocation');
}
return $locations;
}