You are here

function og_test_node_access in Organic groups 7

Implements hook_node_access().

File

tests/og_test.module, line 12
Test module for Organic groups.

Code

function og_test_node_access($node, $op, $account) {
  $return = NODE_ACCESS_IGNORE;
  if ($op == 'update' && $node->title == 'deny access') {
    $return = NODE_ACCESS_DENY;
  }
  return $return;
}