function eck_entity_info in Entity Construction Kit (ECK) 7
Same name and namespace in other branches
- 7.3 eck.module \eck_entity_info()
- 7.2 eck.module \eck_entity_info()
Implements hook_entity_info().
The Entity information for all the entity types created with eck.
File
- ./
eck.module, line 41 - ENTITY CONSTRUCTION KIT
Code
function eck_entity_info() {
module_load_include('inc', 'eck', 'eck.entity_type');
$info = array();
// Get all the names of all the entity types from the eck table
// for each of the created entity types add its info to the $info array.
foreach (eck__entity_type__load() as $entity_type) {
// eck__entity_info creates the entity_info for each entity type.
$info = array_merge($info, eck__entity_type__info($entity_type));
}
return $info;
}