You are here

function private_set_public_action in Private 7

Same name and namespace in other branches
  1. 6 private.module \private_set_public_action()
  2. 7.2 private.module \private_set_public_action()

Implementation of a Drupal action.

File

./private.module, line 326
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()) {
  $node->private = FALSE;
  $nids = array(
    $node->nid,
  );
  private_node_mark_public($nids);
}