You are here

function i18n_commerce_product_views_data_alter in Internationalization for commerce product 7

Implements hook_views_data_alter().

File

includes/views/i18n_commerce_product.views.inc, line 11
Views handlers description.

Code

function i18n_commerce_product_views_data_alter(&$data) {

  // Expose the type-dependent line item title.
  $data['commerce_line_item']['translated_line_item_title'] = array(
    'field' => array(
      'title' => t('Title (translated)'),
      'help' => t('The translated title of the line item determined by its type.'),
      'handler' => 'i18n_commerce_product_line_item_handler_field_line_item_title',
    ),
  );
}