You are here

function workflow_get_creation_state_by_type in Workflow 7

Return the ID of the creation state given a content type.

Parameters

$type: The type of the content.

File

./workflow.deprecated.inc, line 58
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_type($type) {
  $sid = FALSE;
  if ($workflow = workflow_get_workflows_by_type($type)) {
    $sid = $workflow
      ->getCreationSid();
  }
  return $sid;
}