function biblio_citekey_view in Bibliography Module 6.2
Same name and namespace in other branches
- 5 biblio.module \biblio_citekey_view()
- 6 biblio.pages.inc \biblio_citekey_view()
- 7 includes/biblio.pages.inc \biblio_citekey_view()
- 7.2 includes/biblio.pages.inc \biblio_citekey_view()
Creates a view based upon a cititaion key.
Return value
string
1 string reference to 'biblio_citekey_view'
- biblio_menu in ./
biblio.module - Implements hook_menu().
File
- includes/
biblio.pages.inc, line 1221 - Functions in the biblio module related to filtering and page generation.
Code
function biblio_citekey_view() {
$citekey = arg(2);
$nid = db_fetch_object(db_query("SELECT nid FROM {biblio} WHERE biblio_citekey = '%s' ORDER BY vid DESC", $citekey));
if ($nid->nid > 0) {
$node = node_load($nid->nid);
return node_page_view($node);
}
else {
return t("Sorry, citekey @cite not found", array(
'@cite' => $citekey,
));
}
}