You are here

function certificate_node_delete in Certificate 7.2

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_node_delete()
  2. 7.3 certificate.module \certificate_node_delete()
  3. 3.x certificate.module \certificate_node_delete()

Implements hook_nodeapi().

File

./certificate.module, line 388
Certificate module.

Code

function certificate_node_delete($node) {
  db_delete('certificate_node')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('certificate_snapshots')
    ->condition('nid', $node->nid)
    ->execute();
}