You are here

function uuid_features_entity_info_alter in UUID Features Integration 7

Implements hook_entity_info_alter().

File

./uuid_features.module, line 56
UUID Features module allows to export data stored in the db by features.

Code

function uuid_features_entity_info_alter(&$entity_info) {

  // Provide a list of entities that provide bundles
  // to be exported by uuid_features.
  $entity_types = array(
    'bean',
    'node',
    'taxonomy_term',
    'fieldable_panels_pane',
    'commerce_product',
    'field_collection_item',
    'paragraphs_item',
    'user',
  );
  if (module_exists('file_entity')) {
    $entity_types[] = 'file';
  }
  foreach ($entity_types as $type) {

    // Only add flag on existing entity types.
    if (isset($entity_info[$type])) {
      $entity_info[$type]['uuid features'] = TRUE;
    }
  }
}