function biblio_tagged_check_md5 in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/endnote/biblio_tagged.module \biblio_tagged_check_md5()
- 7.2 modules/endnote/biblio_tagged.module \biblio_tagged_check_md5()
1 call to biblio_tagged_check_md5()
- _biblio_tagged_save in modules/
endnote/ biblio_tagged.module
File
- modules/
endnote/ biblio_tagged.module, line 485
Code
function biblio_tagged_check_md5($md5) {
static $tagged_md5s = array();
if (empty($tagged_md5s)) {
$result = db_query("SELECT * FROM {biblio_tagged} ");
foreach ($result as $row) {
$tagged_md5s[$row->biblio_tagged_md5] = $row->nid;
}
}
if (isset($tagged_md5s[$md5])) {
return $tagged_md5s[$md5];
}
else {
// Gaurd against duplicates in the same import.
$tagged_md5s[$md5] = TRUE;
return;
}
}