function poll_entitycache_node_load in Entity cache 7
Implements hook_entitycache_node_load().
This forces poll information to be loaded on each request, since it loads user-specific information during the request.
File
- ./
entitycache.module, line 129 - Allows for caching of core entities.
Code
function poll_entitycache_node_load($nodes) {
$polls = array();
foreach ($nodes as $node) {
if ($node->type == 'poll') {
$polls[$node->nid] = $node;
}
}
if (!empty($polls)) {
poll_load($polls);
}
}