You are here

function module_grants_node_access in Module Grants 7

Same name and namespace in other branches
  1. 6.4 module_grants.module \module_grants_node_access()
  2. 6 module_grants.module \module_grants_node_access()
  3. 6.3 module_grants.module \module_grants_node_access()

Implement hook_node_access() to override default node_access() logic, we have ensured this hook will be the last one to be called, it will not return NODE_ACCESS_IGNORE, thus effectively skipped all the logic in node_access() after line 3032

File

./module_grants.module, line 129

Code

function module_grants_node_access($node, $op, $account) {
  return _module_grants_node_access($op, $node, $account) ? NODE_ACCESS_ALLOW : NODE_ACCESS_DENY;
}