function node_access_example_node_delete

Implements hook_node_delete().

Delete the node_access_example record when the node is deleted.

See also

nodeapi_example.module

Related topics

File

node_access_example/node_access_example.module, line 421

Code

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