function nodejs_subscribe_node_load in Node.js integration 6
Same name and namespace in other branches
- 7 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_node_load()
Implements hook_node_load().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 236
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;
}
}