1 node_access_example.module node_access_example_node_delete($node)

Implements hook_node_delete().

Delete the node_access_example record when the node is deleted.

See also

nodeapi_example.module

Related topics

File

modules/examples/node_access_example/node_access_example.module, line 405
Hook implementations for the Node Access Example module.

Code

function node_access_example_node_delete($node) {
  db_delete('node_access_example')->condition('nid', $node->nid)->execute();
}