You are here

function entity_features_api in Entity API 7

Implements of hook_features_api().

File

./entity.features.inc, line 144
Provides Features integration for entity types using the CRUD API.

Code

function entity_features_api() {
  $items = array();
  foreach (entity_crud_get_info() as $type => $info) {
    if (!empty($info['exportable']) && ($controller = entity_features_get_controller($type))) {
      $items += $controller
        ->api();
    }
  }
  return $items;
}