You are here

function context_node_node_delete in Context Node 7

Implements hook_node_delete()

File

./context_node.module, line 261

Code

function context_node_node_delete($node) {

  // We don't check if this content type's node has enabled the context node functionality
  // because once a node is deleted it doesn't matter if the context node functionality is
  // enabled or not, we just want to get rid of the node from everywhere in the database
  db_delete('context_node')
    ->condition('nid', $node->nid)
    ->execute();
}