You are here

function _book_access_build_node_grants in Book access 5

Same name and namespace in other branches
  1. 6 book_access.module \_book_access_build_node_grants()

Somewhat redundant node grants function to allow us to set a node's grants when a book outline is modified.

1 string reference to '_book_access_build_node_grants'
book_access_form_alter in ./book_access.module
Implements hook_form_alter().

File

./book_access.module, line 318
Allows access control for Drupal book nodes.

Code

function _book_access_build_node_grants($form) {
  $node = $form['#node'];
  $grants = book_access_node_access_records($node);
  node_access_write_grants($node, $grants, 'book_access');
}