You are here

function simple_access_owner_grant in Simple Access 6.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \simple_access_owner_grant()
  2. 7.2 simple_access.module \simple_access_owner_grant()

Action to grant permissions to the owner

File

./simple_access.module, line 735
This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.

Code

function simple_access_owner_grant($node, $conf) {
  foreach (array_filter($conf['sa_owner_permissions']) as $option) {
    $node->simple_access_owner[$option] = 1;
  }
  return array(
    'node' => $node,
  );
}