You are here

function simple_access_action_owner_grant in Simple Access 5.2

Action to grant permissions to the owner

File

inc/workflow_ng.inc, line 105
Add workflow ng functionality to simple access

Code

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