You are here

function eck_entitycache_entity_info_alter in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 modules/eck_entitycache/eck_entitycache.module \eck_entitycache_entity_info_alter()

Implements hook_entity_info_alter().

File

modules/eck_entitycache/eck_entitycache.module, line 11
The ECK Entity cache module.

Code

function eck_entitycache_entity_info_alter(&$info) {
  foreach (EntityType::loadAll() as $entity_type) {

    // Enable Entity Cache for this entity.
    $info[$entity_type->name]['entity cache'] = TRUE;

    // But disable the field cache.
    $info[$entity_type->name]['field cache'] = FALSE;
  }
}