You are here

function biblio_pm_node_delete in Bibliography Module 7

File

modules/pubmed/biblio_pm.module, line 431

Code

function biblio_pm_node_delete($node) {
  if ($node->type != 'biblio') {
    return;
  }
  db_delete('biblio_pubmed')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('biblio_pubmed_grant_info')
    ->condition('nid', $node->nid)
    ->execute();
}