function private_node_insert in Private 7.2
Same name and namespace in other branches
- 7 private.module \private_node_insert()
Implements hook_node_insert().
File
- ./
private.module, line 268 - 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_insert($node) {
// Node created in code won't have the ->private field set.
private_get_default($node);
private_node_update($node);
}