function commerce_line_item_handler_field_line_item_type::render in Commerce Core 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
line_item/ includes/ views/ handlers/ commerce_line_item_handler_field_line_item_type.inc, line 7
Class
- commerce_line_item_handler_field_line_item_type
- Field handler to translate a line item type into its readable form.
Code
function render($values) {
$type = $this
->get_value($values);
$value = commerce_line_item_type_get_name($type);
return $this
->sanitize_value($value);
}