You are here

function uc_extra_fields_pane_handler_field_selection::render in Extra Fields Checkout Pane 6.2

Same name and namespace in other branches
  1. 7 views/uc_extra_fields_pane_handler_field_selection.inc \uc_extra_fields_pane_handler_field_selection::render()

Render the field.

Parameters

$values: The values retrieved from the database.

File

views/uc_extra_fields_pane_handler_field_selection.inc, line 17
Views field handler for Extra Fields Pane selection field types

Class

uc_extra_fields_pane_handler_field_selection
Display the label of select fields instead of the saved key.

Code

function render($values) {
  $value = $values->{$this->field_alias};
  $field = uc_extra_fields_pane_field_load($this->definition['field_id']);
  return $field
    ->output_value($value);
}