You are here

function biblio_load_contributors in Bibliography Module 6

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

Parameters

$vid:

Return value

unknown_type

3 calls to biblio_load_contributors()
biblio_diff in ./biblio.module
An implementation of hook_diff (from the diff module)
biblio_load in ./biblio.module
Implementation of hook_load().
biblio_update_6027 in ./biblio.install

File

./biblio.contributors.inc, line 33

Code

function biblio_load_contributors($vid) {
  $contributors = array();
  $query = "SELECT * FROM {biblio_contributor} bc\n      INNER JOIN {biblio_contributor_data} bcd ON bc.cid=bcd.cid\n      WHERE bc.vid=%d\n      ORDER BY bc.rank ASC";

  // do not change order of presentation
  $result = db_query($query, $vid);
  while ($creator = db_fetch_array($result)) {
    $contributors[$creator['auth_category']][] = $creator;
  }
  return $contributors;
}