function hook_entitycache_post_cache_set_alter in Entity cache 7
Act on entities after storing them into cache.
Parameters
array $entities: Array with entity objects.
string $entity_type:
1 invocation of hook_entitycache_post_cache_set_alter()
File
- ./
entitycache.api.php, line 99 - Hooks provided by the Entity cache module.
Code
function hook_entitycache_post_cache_set_alter(&$entities, $entity_type) {
// Restore changes from hook_entitycache_pre_cache_set_alter().
foreach ($entities as $entity) {
if (isset($entity->old_value)) {
$entity->value = $entity->old_value;
unset($entity->old_value);
}
}
}