You are here

function getdirections_load_location in Get Directions 7.2

Same name and namespace in other branches
  1. 7.3 getdirections.module \getdirections_load_location()
1 call to getdirections_load_location()
getdirections_setlocation_id in ./getdirections.module
Function to setup the map and form

File

./getdirections.module, line 1656
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;
}