You are here

function workflow_load in Workflow 6.2

Same name and namespace in other branches
  1. 6 workflow.module \workflow_load()
  2. 7.2 workflow.entity.inc \workflow_load()
  3. 7 workflow.module \workflow_load()

Load function.

Parameters

$wid: The ID of the workflow to load.

Return value

$workflow Object representing the workflow.

2 calls to workflow_load()
workflow_form_alter in ./workflow.module
Implementation of hook_form_alter().
workflow_tab_form in ./workflow.pages.inc
Form builder. Allow workflow state change and scheduling from workflow tab.

File

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

Code

function workflow_load($wid) {
  $workflow = db_fetch_object(db_query('SELECT * FROM {workflows} WHERE wid = %d', $wid));
  $workflow->options = unserialize($workflow->options);
  return $workflow;
}