function getlocations_get_fieldable_entity_types in Get Locations 7.2
Get an array of fieldanle entity types
Return value
array
12 calls to getlocations_get_fieldable_entity_types()
- getlocations_defaults in ./
getlocations.module - Some defaults.
- getlocations_fields_field_formatter_info_defaults in modules/
getlocations_fields/ getlocations_fields.module - getlocations_fields_field_info_defaults in modules/
getlocations_fields/ getlocations_fields.module - getlocations_fields_getmap_show in modules/
getlocations_fields/ getlocations_fields.module - Used by theme for display output.
- getlocations_leaflet_defaults in modules/
getlocations_leaflet/ getlocations_leaflet.module
File
- ./
getlocations.module, line 2403 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_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;
}