You are here

function workflow_access_workflow in Workflow 5

Same name and namespace in other branches
  1. 5.2 workflow_access.module \workflow_access_workflow()
  2. 6.2 workflow_access/workflow_access.module \workflow_access_workflow()
  3. 6 workflow_access/workflow_access.module \workflow_access_workflow()
  4. 7.2 workflow_access/workflow_access.workflow.inc \workflow_access_workflow()
  5. 7 workflow_access/workflow_access.workflow.inc \workflow_access_workflow()

Implementation of hook_workflow().

Update grants when a node changes workflow state.

File

./workflow_access.module, line 213
Provides node access permissions based on workflow states.

Code

function workflow_access_workflow($op, $old_sid, $sid, $node) {
  if ($op == 'transition post' && $old_sid != $sid) {
    node_access_acquire_grants($node);
  }
}