You are here

function content_access_proccess_grant in Content Access 5

Same name and namespace in other branches
  1. 8 content_access.module \content_access_proccess_grant()
  2. 6 content_access.module \content_access_proccess_grant()
  3. 7 content_access.module \content_access_proccess_grant()
2 calls to content_access_proccess_grant()
content_access_get_default_grant in ./content_access.module
content_access_node_access_records in ./content_access.module

File

./content_access.module, line 494

Code

function content_access_proccess_grant($grant, $rid, $node) {
  $grant['realm'] = $rid == 'author' ? 'content_access_author' : 'content_access_rid';
  $grant['gid'] = $rid == 'author' ? $node->uid : $rid;
  $grant['priority'] = content_access_get_settings('priority', $node->type);
  return $grant;
}