You are here

function getdirections_get_fieldable_entity_types in Get Directions 7.3

Return fieldable entities

1 call to getdirections_get_fieldable_entity_types()
getdirections_get_enabled_entity_types in ./getdirections.module
Return fieldable entities

File

./getdirections.module, line 2956
Fetches google map directions.

Code

function getdirections_get_fieldable_entity_types() {
  $entity_get_info = entity_get_info();
  $fieldables = array();
  foreach ($entity_get_info as $entity_type => $info) {
    if (isset($entity_get_info[$entity_type]['fieldable']) && $entity_get_info[$entity_type]['fieldable']) {
      $fieldables[] = $entity_type;
    }
  }
  return $fieldables;
}