You are here

function farm_map_farm_map_entity_geometries in farmOS 7

Implements hook_farm_map_geometries().

File

modules/farm/farm_map/farm_map.module, line 304

Code

function farm_map_farm_map_entity_geometries($entity_type, $entity) {
  $geometries = array();

  // Find geometry in the standard geofield.
  if (!empty($entity->field_farm_geofield[LANGUAGE_NONE][0]['geom'])) {
    $geometries[] = $entity->field_farm_geofield[LANGUAGE_NONE][0]['geom'];
  }
  return $geometries;
}