You are here

function biblio_pm_check_pmid in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/pubmed/biblio_pm.module \biblio_pm_check_pmid()
  2. 6 pubmed/biblio_pm.module \biblio_pm_check_pmid()
  3. 7.2 modules/pubmed/biblio_pm.module \biblio_pm_check_pmid()
1 call to biblio_pm_check_pmid()
biblio_pm_form_biblio_node_form_submit in modules/pubmed/biblio_pm.module

File

modules/pubmed/biblio_pm.module, line 374

Code

function biblio_pm_check_pmid($pmid) {
  return db_query("SELECT nid FROM {biblio_pubmed} WHERE biblio_pubmed_id = :pmid", array(
    ':pmid' => $pmid,
  ))
    ->fetchField();
}