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