function nodejs_subscribe_node_load in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_node_load()
Implements hook_node_load().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 147
Code
function nodejs_subscribe_node_load($nodes, $types) {
$result = db_query('SELECT nid, subscribe FROM {nodejs_subscribe_node} WHERE nid IN (:nids)', array(
':nids' => array_keys($nodes),
));
foreach ($result as $record) {
$nodes[$record->nid]->nodejs_subscribe = $record->subscribe;
}
}