You are here

function _loadMD5 in Bibliography Module 6

Same name and namespace in other branches
  1. 7 includes/biblio.contributors.inc \_loadMD5()
  2. 7.2 includes/biblio.contributors.inc \_loadMD5()

Return value

unknown_type

1 call to _loadMD5()
_save_contributors in ./biblio.contributors.inc
Save contributors to the database

File

./biblio.contributors.inc, line 400

Code

function _loadMD5() {
  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;
}