function certificate_node_load in Certificate 7.3
Same name and namespace in other branches
- 8.3 certificate.module \certificate_node_load()
- 7.2 certificate.module \certificate_node_load()
- 3.x certificate.module \certificate_node_load()
Implements hook_node_load().
File
- ./
certificate.module, line 377 - Certificate module.
Code
function certificate_node_load($nodes, $types) {
$query = db_query("SELECT * FROM {certificate_node} WHERE nid IN (:nids)", array(
':nids' => array_keys($nodes),
));
while ($row = $query
->fetch()) {
$nodes[$row->nid]->certificate['node_settings'][$row->mapper][$row->type] = $row->template;
}
}