You are here

function bean_entitycache_entity_info_alter in Bean (for Drupal 7) 7

Implements hook_entity_info_alter().

File

bean_entitycache/bean_entitycache.module, line 11
The Bean Entity cache module.

Code

function bean_entitycache_entity_info_alter(&$entity_info) {

  // Enable Entity Cache support for beans.
  $entity_info['bean']['entity cache'] = TRUE;

  // Which means that we don't need to cache the fields.
  $entity_info['bean']['field cache'] = FALSE;

  // Provide bean entitycache controller so other modules using entitycache can
  // work with beans.
  $entity_info['bean']['controller class'] = 'BeanEntityCacheAPIController';
}