You are here

function entitycache_entity_info_alter in Entity cache 7

Implements hook_entity_info_alter().

File

./entitycache.module, line 11
Allows for caching of core entities.

Code

function entitycache_entity_info_alter(&$entity_info) {
  foreach (entitycache_supported_core_entities(TRUE) as $type => $controller) {
    $entity_info[$type]['field cache'] = FALSE;
    $entity_info[$type]['entity cache'] = TRUE;
    $entity_info[$type]['controller class'] = $controller;
  }
}