function book_access_nodeapi in Book access 6
Same name and namespace in other branches
- 6.2 book_access.module \book_access_nodeapi()
Implements hook_nodeapi().
File
- ./
book_access.module, line 279 - Allows access control for book nodes on a per book basis. It is based on forum_access.module and tac_lite.module.
Code
function book_access_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($op == 'delete') {
db_query("DELETE FROM {book_access_role} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {book_access_user} WHERE nid = %d", $node->nid);
}
}