You are here

function i18n_commerce_product_line_item_handler_field_line_item_title::render in Internationalization for commerce product 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

includes/views/handlers/i18n_commerce_product_line_item_handler_field_line_item_title.inc, line 22
.

Class

i18n_commerce_product_line_item_handler_field_line_item_title
Class i18n_commerce_product_line_item_handler_field_line_item_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 i18n_commerce_product_line_item_title($line_item);
}