You are here

function w3c_validator_node_delete in W3C Validator 7

Implements hook_node_delete().

File

./w3c_validator.module, line 88

Code

function w3c_validator_node_delete($node) {

  // Build the uri
  $uri = 'node/' . $node->nid;

  // Delete
  db_delete('w3c_validator')
    ->condition('uri', $uri)
    ->execute();
}