You are here

function pminvoice_node_revision_delete in Drupal PM (Project Management) 7

Implements hook_node_revision_delete().

File

pminvoice/pminvoice.module, line 716
1: Hooks (help, perm, init, menu, theme, node_info) 2: Access functions 3: Load organization and project details 4: Invoice create / edit form 5: Invoice node manipulation functions 6: Admin settings 7: Views hook 8: Project Managementinvoiceitem…

Code

function pminvoice_node_revision_delete($node) {
  db_delete('pminvoice')
    ->condition('vid', $node->vid)
    ->execute();
  db_delete('pminvoice_items')
    ->condition('invoice_vid', $node->vid)
    ->execute();
}