You are here

function biblio_crossref_node_load in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 modules/crossref/biblio_crossref.module \biblio_crossref_node_load()

File

modules/crossref/biblio_crossref.module, line 195

Code

function biblio_crossref_node_load($nodes, $types) {
  $result = db_query('SELECT  nid, biblio_crossref_id, biblio_crossref_md5  FROM {biblio_crossref} WHERE nid IN(:nids)', array(
    ':nids' => array_keys($nodes),
  ));
  foreach ($result as $record) {
    $nodes[$record->nid]->biblio_crossref_id = $record->biblio_crossref_id;
    $nodes[$record->nid]->biblio_crossref_md5 = $record->biblio_crossref_md5;
  }
}