function pmexpense_node_revision_delete in Drupal PM (Project Management) 7
Implements hook_node_revision_delete().
File
- pmexpense/
pmexpense.module, line 673 - Hook implementations and main functions for PM Expense.
Code
function pmexpense_node_revision_delete($node) {
// Notice that we're matching a single revision based on the node's vid.
db_delete('pmexpense')
->condition('vid', $node->vid)
->execute();
}