You are here

function workflow_get_workflow_node_by_sid in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow.module \workflow_get_workflow_node_by_sid()

Given a sid, find out the nodes associated.

1 call to workflow_get_workflow_node_by_sid()
WorkflowState::deactivate in includes/Entity/WorkflowState.php
Deactivate a Workflow State, moving existing nodes to a given State.

File

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

Code

function workflow_get_workflow_node_by_sid($sid) {
  return db_select('workflow_node', 'wn')
    ->fields('wn')
    ->condition('wn.sid', $sid)
    ->execute()
    ->fetchAll();
}