function getlocations_get_all_entity_types in Get Locations 7.2
Function
Return value
Returns
1 call to getlocations_get_all_entity_types()
- getlocations_get_type_markers in ./
getlocations.module - Function
File
- ./
getlocations.module, line 6358 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_get_all_entity_types() {
// use entity_get_info to find all the fieldable types available
$entity_allinfo = entity_get_info();
$typarr = array();
foreach ($entity_allinfo as $entity_type => $entity_info) {
if ($entity_info['fieldable']) {
$typarr[] = $entity_type;
}
}
return $typarr;
}