You are here

function farm_map_entity_geometries in farmOS 7

Extract geometries from an entity.

Parameters

$entity_type: The entity type machine name.

$entity: The entity object.

Return value

array Return an array of geometry strings in WKT format. An associative array is allowed, and the keys can be used to differentiate multiple geometries from the same entity.

1 call to farm_map_entity_geometries()
farm_map_kml_action in modules/farm/farm_map/farm_map_kml/farm_map_kml.module
Action function for farm_map_kml_action.

File

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

Code

function farm_map_entity_geometries($entity_type, $entity) {

  // Ask modules to extract geometries.
  return module_invoke_all('farm_map_entity_geometries', $entity_type, $entity);
}