function workflow_load in Workflow 6
Same name and namespace in other branches
- 6.2 workflow.module \workflow_load()
- 7.2 workflow.entity.inc \workflow_load()
- 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 553 - 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;
}