function workflowfield_options_list in Workflow 7
Same name and namespace in other branches
- 7.2 workflow_field/workflowfield.field.inc \workflowfield_options_list()
Callback function for the default Options widgets. Implements hook_options_list(). @todo: move to a class.
File
- workflow_field/
workflowfield.field.inc, line 170 - Defines a Workflow field, widget and formatter. (copied from list field).
Code
function workflowfield_options_list($field, $instance, $entity_type, $entity) {
$workflow_field = new WorkflowItem($field, $instance, $entity_type, $entity);
return $workflow_field
->getOptions();
}