You are here

function getlocations_load_locations in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_load_locations()
  2. 6 getlocations.module \getlocations_load_locations()
  3. 7.2 getlocations.module \getlocations_load_locations()

Function to fetch locations

Parameters

int $id The entity identifier:

Return value

array $locations

11 calls to getlocations_load_locations()
getlocations_commentmap in ./getlocations.module
Page callback: Displays a map.
getlocations_fields_views_proximity_get_reference_location in modules/getlocations_fields/views/getlocations_fields.views.inc
Helper function for proximity handlers. Retrieves the coordinates of the location that this field measures distances against.
getlocations_getinfo in ./getlocations.module
getlocations_leaflet_entity_type_map in modules/getlocations_leaflet/getlocations_leaflet.module
Function
getlocations_mapquest_entity_type_map in modules/getlocations_mapquest/getlocations_mapquest.module
Function

... See full list

File

./getlocations.module, line 3069
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_load_locations($id, $key = 'vid') {
  $locations = '';
  if (module_exists('getlocations_fields')) {
    $locations = getlocations_fields_load_locations($id, $key);
  }
  elseif (module_exists('location_cck')) {
    $locations = location_load_locations($id, $key);
  }
  elseif (module_exists('geofield')) {
    $locations = getlocations_other_load_locations($id, $key, 'geofield');
  }
  elseif (module_exists('geolocation')) {
    $locations = getlocations_other_load_locations($id, $key, 'geolocation');
  }
  return $locations;
}