You are here

function sheetnode_node_revision_delete in Sheetnode 7.2

Same name and namespace in other branches
  1. 7 sheetnode.module \sheetnode_node_revision_delete()

Implements hook_node_revision_delete().

File

./sheetnode.module, line 134
Module file for the sheetnode module.

Code

function sheetnode_node_revision_delete($node) {
  if ($node->type == 'sheetnode') {
    db_delete('sheetnode')
      ->condition('vid', $node->vid)
      ->execute();
  }
}