You are here

function commerce_line_item_field_info in Commerce Core 7

Implements hook_field_info().

File

modules/line_item/commerce_line_item.module, line 797
Defines the core Commerce line item entity and API functions interact with line items on orders.

Code

function commerce_line_item_field_info() {
  return array(
    'commerce_line_item_reference' => array(
      'label' => t('Line item reference'),
      'description' => t('This field stores the ID of a related line item as an integer value.'),
      'settings' => array(),
      'instance_settings' => array(),
      'default_widget' => 'commerce_line_item_manager',
      'default_formatter' => 'commerce_line_item_reference_view',
      'property_type' => 'commerce_line_item',
      'property_callbacks' => array(
        'commerce_line_item_property_info_callback',
      ),
    ),
  );
}