You are here

function pmproject_delete in Drupal PM (Project Management) 7

Implements hook_delete().

File

pmproject/pmproject.module, line 550

Code

function pmproject_delete($node) {

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