You are here

function _nodehierarchyaccess_get_node_grants in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 nodehierarchyaccess/nodehierarchyaccess.module \_nodehierarchyaccess_get_node_grants()
  2. 6.2 nodehierarchyaccess/nodehierarchyaccess.module \_nodehierarchyaccess_get_node_grants()

Get the grants for the given node.

2 calls to _nodehierarchyaccess_get_node_grants()
nodehierarchyaccess_page_form_submit in nodehierarchyaccess/nodehierarchyaccess.module
Callback for the nodeaccess form submit
_nodehierarchyaccess_copy_parent_grants in nodehierarchyaccess/nodehierarchyaccess.module
Copy a node's parent's grants to the given node.

File

nodehierarchyaccess/nodehierarchyaccess.module, line 105
A module to integrate nodehierarchy and nodeaccess.

Code

function _nodehierarchyaccess_get_node_grants($nid) {

  // Load the node because nodeaccess_node_access_records needs the node type as well as the nid.
  $node = node_load($nid);
  return nodeaccess_node_access_records($node);
}