You are here

function acl_node_test_node_grants in ACL 7

Same name and namespace in other branches
  1. 8 tests/modules/acl_node_test/acl_node_test.module \acl_node_test_node_grants()

Implements hook_node_grants().

File

tests/acl_node_test.module, line 12
Dummy module implementing node related hooks to test API interaction with the Node module.

Code

function acl_node_test_node_grants($account, $op) {

  // Give everyone full grants so we don't break other node tests.
  // Our node access tests asserts three realms of access.
  // See testGrantAlter().
  return array(
    'test_article_realm' => array(
      1,
    ),
    'test_page_realm' => array(
      1,
    ),
    'test_alter_realm' => array(
      2,
    ),
  );
}