function _biblio_load_contributor_hashes in Bibliography Module 6.2
Returns array of md5 hash strings for all biblio contributors.
// @todo: Is this function presently used anywhere?
Return value
array|null An array of md5 hash values; otherwise null if no contributors.
File
- includes/
biblio.contributors.inc, line 753 - Functions related to contributors in Drupal biblio module.
Code
function _biblio_load_contributor_hashes() {
static $md5 = array();
static $count = 0;
$db_count = db_result(db_query("SELECT COUNT(*) FROM {biblio_contributor_data}"));
if ($db_count != $count) {
$count = $db_count;
$md5 = array();
$result = db_query('SELECT md5,cid FROM {biblio_contributor_data}');
while ($row = db_fetch_array($result)) {
$md5[$row['cid']] = $row['md5'];
}
}
return count($md5) ? $md5 : NULL;
}