You are here

function pmtask_delete in Drupal PM (Project Management) 7

Implements hook_delete().

File

pmtask/pmtask.module, line 609

Code

function pmtask_delete($node) {

  // Notice that we're matching all revision, by using the node's nid.
  db_delete('pmtask')
    ->condition('nid', $node->nid)
    ->execute();
}