You are here

function eck_entity_type_features_export_options in Entity Construction Kit (ECK) 7.2

Same name and namespace in other branches
  1. 7.3 eck.features.inc \eck_entity_type_features_export_options()
  2. 7 eck.features.inc \eck_entity_type_features_export_options()

Implements hook_features_export_options().

File

./eck.features.inc, line 15
Integration with the Features module.

Code

function eck_entity_type_features_export_options() {
  module_load_include('inc', 'eck', 'eck.entity_type');
  $entity_types = array();
  foreach (EntityType::loadAll() as $entity_type) {
    $entity_types[$entity_type->name] = $entity_type->label;
  }
  return $entity_types;
}