You are here

function biblio_pm_link in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/pubmed/biblio_pm.module \biblio_pm_link()
1 call to biblio_pm_link()
biblio_pm_biblio_lookup_link in pubmed/biblio_pm.module

File

pubmed/biblio_pm.module, line 156

Code

function biblio_pm_link($type, $node = NULL, $teaser = FALSE) {
  if ($type == 'node' && $node->type == 'biblio' && !empty($node->biblio_pubmed_id)) {
    $link = 'http://www.ncbi.nlm.nih.gov/pubmed/' . $node->biblio_pubmed_id . '?dopt=Abstract';
    return array(
      'biblio_pubmed' => array(
        'title' => t('PubMed'),
        'href' => $link,
        'attributes' => array(
          'title' => t("Click to view the PubMed listing for this node"),
        ),
      ),
    );
  }
  return;
}