You are here

function eck_entity_info_alter in Entity Construction Kit (ECK) 7.2

Same name and namespace in other branches
  1. 7.3 eck.module \eck_entity_info_alter()

Implements hook_entity_info_alter().

File

./eck.module, line 314

Code

function eck_entity_info_alter(&$info) {
  foreach (EntityType::loadAll() as $entity_type) {
    $entity_type_info = $info[$entity_type->name];
    $entity_type_info = eck_property_behavior_invoke_plugin_alter($entity_type, 'entity_info', $entity_type_info);
    if ($entity_type_info) {
      $info[$entity_type->name] = $entity_type_info;
    }
  }
}