You are here

function workflow_get_workflow_by_sid in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow.deprecated.inc \workflow_get_workflow_by_sid()

Given a sid, return a workflow. Sids are a unique id.

@deprecated: workflow_get_workflow_by_sid --> workflow_state_load_single

File

./workflow.deprecated.inc, line 308
Contains contains per-class functions, that are deprecated.

Code

function workflow_get_workflow_by_sid($sid) {
  return db_query("SELECT w.wid, w.name, w.tab_roles, w.options FROM {workflow_states} s\n    INNER JOIN {workflows} w ON w.wid=s.wid WHERE sid = :sid ", array(
    ':sid' => $sid,
  ))
    ->fetchObject();
}