function _biblio_citekey_print in Bibliography Module 6
Same name and namespace in other branches
- 5 biblio.module \_biblio_citekey_print()
- 6.2 biblio.module \_biblio_citekey_print()
- 7 biblio.module \_biblio_citekey_print()
- 7.2 biblio.module \_biblio_citekey_print()
3 calls to _biblio_citekey_print()
- _biblio_filter_footnote_callback in ./
biblio.module - _biblio_filter_replace_callback in ./
biblio.module - Helper function called from preg_replace_callback() above
- _biblio_inline_filter_replace_callback in ./
biblio.module
File
- ./
biblio.module, line 1919
Code
function _biblio_citekey_print($citekey) {
$nid = db_fetch_object(db_query("SELECT nid FROM {biblio} WHERE biblio_citekey = '%s' ORDER BY vid DESC", $citekey));
if ($nid->nid > 0) {
$style = biblio_get_style();
$base = variable_get('biblio_base', 'biblio');
$node = node_load($nid->nid);
return theme('biblio_style', $node, $base, $style);
}
else {
return t("Citekey @cite not found", array(
'@cite' => $citekey,
));
}
}