public function WorkflowItem::getAllowedValues in Workflow 7
Same name and namespace in other branches
- 7.2 includes/Field/WorkflowItem.php \WorkflowItem::getAllowedValues()
File
- includes/
Field/ WorkflowItem.php, line 406 - Contains workflow\includes\Field\WorkflowItem.
Class
- WorkflowItem
- Plugin implementation of the 'workflow' field type.
Code
public function getAllowedValues() {
$options = array();
// Get all state names, including inactive states.
foreach (Workflow::getWorkflows() as $workflow) {
$options += $workflow
->getOptions($grouped = FALSE);
}
return $options;
}