function _workflow_creation_state in Workflow 5.2
Same name and namespace in other branches
- 5 workflow.module \_workflow_creation_state()
- 6.2 workflow.module \_workflow_creation_state()
- 6 workflow.module \_workflow_creation_state()
3 calls to _workflow_creation_state()
- workflow_edit_form_validate in ./
workflow.module - workflow_field_choices in ./
workflow.module - Get the states one can move to for a given node.
- workflow_node_current_state in ./
workflow.module - Get the current state of a given node.
File
- ./
workflow.module, line 804
Code
function _workflow_creation_state($wid) {
static $cache;
if (!isset($cache[$wid])) {
$result = db_result(db_query("SELECT sid FROM {workflow_states} WHERE wid = %d AND sysid = %d", $wid, WORKFLOW_CREATION));
$cache[$wid] = $result;
}
return $cache[$wid];
}