function pmtimetracking_nodeapi in Drupal PM (Project Management) 7
Implements hook_nodeapi().
File
- pmtimetracking/
pmtimetracking.module, line 560 - Main module functions for PM Timetracking.
Code
function pmtimetracking_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'delete revision':
// Notice that we're matching a single revision based on the node's vid.
$num_deleted = db_delete('pmtimetracking')
->condition('vid', $node->vid)
->execute();
break;
}
}