function book_access_node_grants in Book access 1.x
Same name and namespace in other branches
- 5 book_access.module \book_access_node_grants()
- 6.2 book_access.module \book_access_node_grants()
- 6 book_access.module \book_access_node_grants()
- 7.2 book_access.module \book_access_node_grants()
Implements hook_node_grants().
File
- ./
book_access.module, line 277
Code
function book_access_node_grants(AccountInterface $account, $op) {
/* $grants = array();
$grants['book_access_author'] = array($account->uid);
$grants['book_access_role'] = array_keys($account->roles);
$grants['book_access_user'] = array($account->uid);
return $grants;*/
}