You are here

function workflow_get_workflow_states_all in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.deprecated.inc \workflow_get_workflow_states_all()

Get all active states in the system.

@deprecated: workflow_get_workflow_states_all() --> Workflow::getOptions()

Return value

An array $id => $name, of all active states.

File

./workflow.deprecated.inc, line 88
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_workflow_states_all() {
  $options = array();

  // Get all states, only where active.
  foreach (Workflow::getWorkflows() as $workflow) {
    $options += $workflow
      ->getOptions($grouped = FALSE);
  }
  return $options;
}