You are here

function restful_node_access_test_node_access_records in RESTful 7

Same name and namespace in other branches
  1. 7.2 tests/modules/restful_node_access_test/restful_node_access_test.module \restful_node_access_test_node_access_records()

Implements hook_node_access_records().

File

tests/modules/restful_node_access_test/restful_node_access_test.module, line 29
Helper module for testing the RESTful module with node access.

Code

function restful_node_access_test_node_access_records($node) {
  $grants = array();
  $grants[] = array(
    'realm' => 'restful_test',
    'gid' => $node->uid,
    'grant_view' => 1,
    'grant_update' => 0,
    'grant_delete' => 0,
    'priority' => 0,
  );
  return $grants;
}