function private_node_delete in Private 7.2
Same name and namespace in other branches
- 7 private.module \private_node_delete()
Implements hook_node_delete().
File
- ./
private.module, line 259 - A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.
Code
function private_node_delete($node) {
db_delete('private')
->condition('nid', $node->nid)
->execute();
}