You are here

function workflow_get_workflow_by_sid in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.deprecated.inc \workflow_get_workflow_by_sid()
1 call to workflow_get_workflow_by_sid()
workflow_notify_workflow in workflow_notify/workflow_notify.module
Implements hook_workflow().

File

./workflow.deprecated.inc, line 157
Contains contains per-class functions, that are deprecated. Usage: The new code can be tested, by removing this file-include from workflow.module.

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();
}