You are here

function workflow_get_workflow_transitions_by_roles in Workflow 7

Given a role string get any transition involved.

1 call to workflow_get_workflow_transitions_by_roles()
workflow_delete_workflow_transitions_by_roles in ./workflow.module
Given a sid and target_sid, get the transition. This will be unique.

File

./workflow.module, line 716
Support workflows made up of arbitrary states.

Code

function workflow_get_workflow_transitions_by_roles($roles) {
  $results = db_query('SELECT tid, sid, target_sid, roles FROM {workflow_transitions} WHERE roles LIKE :roles', array(
    ':roles' => $roles,
  ));
  return $results
    ->fetchAll();
}