function commerce_line_item_handler_field_line_item_title::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_title.inc, line 18
Class
- commerce_line_item_handler_field_line_item_title
- Field handler to return a line item's title.
Code
function render($values) {
// Load the line item and return its title.
$line_item_id = $this
->get_value($values, 'line_item_id');
$line_item = commerce_line_item_load($line_item_id);
return commerce_line_item_title($line_item);
}