function biblio_get_keyword_by_id in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.keywords.inc \biblio_get_keyword_by_id()
- 6 biblio.keywords.inc \biblio_get_keyword_by_id()
- 7.2 includes/biblio.keywords.inc \biblio_get_keyword_by_id()
Parameters
$kid:
2 calls to biblio_get_keyword_by_id()
File
- includes/
biblio.keywords.inc, line 51 - Contains all keyword related functions.
Code
function biblio_get_keyword_by_id($kid) {
static $keywords = array();
if (!isset($keywords[$kid])) {
$keywords[$kid] = db_query('SELECT * FROM {biblio_keyword_data} WHERE kid = :kid', array(
':kid' => $kid,
))
->fetchObject();
}
return $keywords[$kid];
}