You are here

function asset_entitycache_entity_info_alter in Asset 7

Implements hook_entity_info_alter().

File

modules/asset_entitycache/asset_entitycache.module, line 10
The Asset Entity cache module.

Code

function asset_entitycache_entity_info_alter(&$entity_info) {

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

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