You are here

function pmnote_nodeapi in Drupal PM (Project Management) 7

Implements hook_nodeapi().

File

pmnote/pmnote.module, line 402
Functions for the PM Note module.

Code

function pmnote_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'delete revision':

      // Notice that we're matching a single revision based on the node's vid.
      db_delete('pmnote')
        ->condition('vid', $node->vid)
        ->execute();
      break;
  }
}