You are here

function commerce_product_reference_commerce_line_item_type_info in Commerce Core 7

Implements hook_commerce_line_item_type_info().

File

modules/product_reference/commerce_product_reference.module, line 1235
Defines a field type for referencing products from other entities.

Code

function commerce_product_reference_commerce_line_item_type_info() {
  $line_item_types = array();
  $line_item_types['product'] = array(
    'name' => t('Product'),
    'description' => t('References a product and displays it with the SKU as the label.'),
    'product' => TRUE,
    'add_form_submit_value' => t('Add product'),
    'base' => 'commerce_product_line_item',
  );
  return $line_item_types;
}