You are here

function workflow_access_get_workflow_access_by_sid in Workflow 7

Same name and namespace in other branches
  1. 8 modules/workflow_access/workflow_access.module \workflow_access_get_workflow_access_by_sid()
  2. 7.2 workflow_access/workflow_access.module \workflow_access_get_workflow_access_by_sid()

Given a sid, retrieve the access information and return the row(s).

2 calls to workflow_access_get_workflow_access_by_sid()
workflow_access_form in workflow_access/workflow_access.module
Implements hook_form().
workflow_access_node_access_records in workflow_access/workflow_access.module
Implements hook_node_access_records().

File

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

Code

function workflow_access_get_workflow_access_by_sid($sid) {
  $results = db_query('SELECT * from {workflow_access} where sid = :sid', array(
    ':sid' => $sid,
  ));
  return $results
    ->fetchAll();
}