You are here

function biblio_get_contributor in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.contributors.inc \biblio_get_contributor()
  2. 6 biblio.contributors.inc \biblio_get_contributor()
  3. 7.2 includes/biblio.contributors.inc \biblio_get_contributor()
2 calls to biblio_get_contributor()
_biblio_filter_info_line in includes/biblio.pages.inc
_save_contributors in includes/biblio.contributors.inc
Save contributors to the database.

File

includes/biblio.contributors.inc, line 40

Code

function biblio_get_contributor($aid) {
  $contributor =& drupal_static(__FUNCTION__);
  if (!isset($contributor[$aid])) {
    $contributor[$aid] = db_query('SELECT * FROM {biblio_contributor_data} WHERE cid = :cid', array(
      ':cid' => $aid,
    ))
      ->fetchObject();
  }
  return $contributor[$aid];
}