function private_set_public_action in Private 7.2
Same name and namespace in other branches
- 6 private.module \private_set_public_action()
- 7 private.module \private_set_public_action()
Implementation of a Drupal action.
File
- ./
private.module, line 365 - 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_set_public_action(&$node, $context = array()) {
$nids = array(
$node->nid,
);
private_node_mark($nids, 0);
}