public static function EntityCacheControllerHelper::entityCacheAttachLoad in Entity cache 7
Allow modules to implement uncached entity hooks.
Perform two additional hook invocations for modules needing to add uncacheable data to objects while serving the request.
See also
entitycache_entitycache_node_load()
1 call to EntityCacheControllerHelper::entityCacheAttachLoad()
File
- includes/
entitycache.entitycachecontrollerhelper.inc, line 266 - EntityCacheControllerHelper cache helper.
Class
- EntityCacheControllerHelper
- Entity cache helper.
Code
public static function entityCacheAttachLoad($controller, $entities) {
// Give modules the chance to act on any entity.
foreach (module_implements('entitycache_load') as $module) {
$function = $module . '_entitycache_load';
$function($entities, $controller->entityType);
}
// Give modules the chance to act on a specific entity type.
foreach (module_implements('entitycache_' . $controller->entityType . '_load') as $module) {
$function = $module . '_entitycache_' . $controller->entityType . '_load';
$function($entities);
}
}