You are here

function biblio_node_revision_delete in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 biblio.module \biblio_node_revision_delete()

File

./biblio.module, line 1153
Bibliography Module for Drupal.

Code

function biblio_node_revision_delete($node) {
  if ($node->type == 'biblio') {
    db_delete('biblio')
      ->condition('vid', $node->vid)
      ->execute();
    db_delete('biblio_contributor')
      ->condition(db_and()
      ->condition('nid', $node->nid)
      ->condition('vid', $node->vid))
      ->execute();
    db_delete('biblio_keyword')
      ->condition(db_and()
      ->condition('nid', $node->nid)
      ->condition('vid', $node->vid))
      ->execute();
  }
}