You are here

function commerce_shipping_commerce_line_item_type_info in Commerce Shipping 7.2

Same name and namespace in other branches
  1. 7 commerce_shipping.module \commerce_shipping_commerce_line_item_type_info()

Implements hook_commerce_line_item_type_info().

File

./commerce_shipping.module, line 732
Defines a system for calculating shipping costs associated with an order.

Code

function commerce_shipping_commerce_line_item_type_info() {
  $line_item_types = array();
  $line_item_types['shipping'] = array(
    'name' => t('Shipping'),
    'description' => t('References a shipping method and displays the rate with the selected service title.'),
    'add_form_submit_value' => t('Add shipping'),
    'base' => 'commerce_shipping_line_item',
  );
  return $line_item_types;
}