function state_flow_schedule_handler_field_state_machine_event::render in State Machine 7.2
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
state_flow_schedule/ includes/ views/ state_flow_schedule_handler_field_state_machine_event.inc, line 6
Class
- state_flow_schedule_handler_field_state_machine_event
- Custom field handler for State Machine Schedule events, displays the event by its label.
Code
function render($values) {
$value = $this
->get_value($values);
$state_flow = state_flow_load_state_machine(node_load(NULL, $values->vid));
$event = $state_flow
->get_event($value);
$options = $event
->get_options();
return $this
->sanitize_value($options['label']);
}