You are here

function eck_entity_type_features_export in Entity Construction Kit (ECK) 7

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

Implementation of hook_features_export.

File

./eck.features.inc, line 25

Code

function eck_entity_type_features_export($data, &$export, $module_name = '') {
  $pipe = array();
  foreach ($data as $entity_type) {

    // Export the entity
    $export['features']['eck_entity_type'][$entity_type] = $entity_type;
    $export['dependencies']['eck_entity_type'] = 'eck';
    $export['dependencies']['features'] = 'features';
  }
  return $pipe;
}