You are here

function workflow_get_creation_state_by_wid in Workflow 7

Same name and namespace in other branches
  1. 7.2 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

$wid: The ID of the workflow.

File

./workflow.deprecated.inc, line 44
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_creation_state_by_wid($wid) {
  $sid = 0;
  if ($workflow = Workflow::load($wid)) {
    $sid = $workflow
      ->getCreationSid();
  }
  return $sid;
}