function node_access_example_node_delete in Examples for Developers 7
Implements hook_node_delete().
Delete the node_access_example record when the node is deleted.
See also
Related topics
File
- node_access_example/
node_access_example.module, line 419 - Module file illustrating API-based node access.
Code
function node_access_example_node_delete($node) {
db_delete('node_access_example')
->condition('nid', $node->nid)
->execute();
}