You are here

function workflowfield_allowed_values in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow_field/workflowfield.field.inc \workflowfield_allowed_values()
1 string reference to 'workflowfield_allowed_values'
WorkflowItem::getInfo in includes/Field/WorkflowItem.php

File

workflow_field/workflowfield.field.inc, line 160
Defines a Workflow field, widget and formatter. (copied from list field).

Code

function workflowfield_allowed_values($field, $instance, $entity_type, $entity) {
  $workflow_field = new WorkflowItem($field, $instance, $entity_type, $entity);
  return $workflow_field
    ->getAllowedValues();
}