function eck_entity_info in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7 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.
1 call to eck_entity_info()
- eck_form_field_ui_field_overview_form_alter in ./
eck.module - Adds a manage properties section.
File
- ./
eck.module, line 327
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 (EntityType::loadAll() 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;
}