function eck_entity_type_features_export in Entity Construction Kit (ECK) 7.2
Same name and namespace in other branches
- 7.3 eck.features.inc \eck_entity_type_features_export()
- 7 eck.features.inc \eck_entity_type_features_export()
Implements hook_features_export().
File
- ./
eck.features.inc, line 27 - Integration with the Features module.
Code
function eck_entity_type_features_export($data, &$export, $module_name = '') {
$pipe = array();
$entity_types = EntityType::loadMultipleByName($data);
foreach (array_keys($entity_types) as $entity_type) {
// Export the entity type.
$export['features']['eck_entity_type'][$entity_type] = $entity_type;
$export['dependencies']['eck'] = 'eck';
// @todo We need to add dependencies on the modules implementing the
// property behaviors currently they are all implemented by ECK but in the
// future, people might have their custom behaviors.. or we might have
// behaviors provided by contrib.
$export['dependencies']['features'] = 'features';
}
return $pipe;
}