function eck_bundle_features_export_options in Entity Construction Kit (ECK) 7.2
Same name and namespace in other branches
- 7.3 eck.features.inc \eck_bundle_features_export_options()
Implements hook_features_export_options().
File
- ./
eck.features.inc, line 149 - Integration with the Features module.
Code
function eck_bundle_features_export_options() {
$bundles = array();
foreach (Bundle::loadAll() as $bundle) {
// @todo Ideally, all bundles should be accessible to features, but
// we're currently just targeting those created through ECK.
$entity_type = EntityType::loadByName($bundle->entity_type);
$bundles[$bundle->machine_name] = "{$entity_type->label}:{$bundle->label}";
}
return $bundles;
}