function workflow_get_creation_state_by_wid in Workflow 7.2
Same name and namespace in other branches
- 7 workflow.deprecated.inc \workflow_get_creation_state_by_wid()
Return the ID of the creation state for this workflow.
@deprecated: workflow_get_creation_state_by_wid($wid) --> $workflow->getCreationSid().
Parameters
mixed $wid: The ID of the workflow.
Return value
int
File
- ./workflow.deprecated.inc, line 69 
- Contains contains per-class functions, that are deprecated.
Code
function workflow_get_creation_state_by_wid($wid) {
  $sid = 0;
  if ($workflow = workflow_load_single($wid)) {
    $sid = $workflow
      ->getCreationSid();
  }
  return $sid;
}