node_test_node_grants

7 node_test.module node_test_node_grants($account, $op)
8 node_test.module node_test_node_grants($account, $op)

Implements hook_node_grants().

1 call to node_test_node_grants()

File

modules/node/tests/node_test.module, line 55
Dummy module implementing node related hooks to test API interaction with the Node module.

Code

function 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),
  );
}
Login or register to post comments