You are here

function commerce_product_bundle_commerce_line_item_type_info in Commerce Product Bundle 7

Same name and namespace in other branches
  1. 7.2 commerce_product_bundle.module \commerce_product_bundle_commerce_line_item_type_info()

Implements hook_commerce_line_item_type_info().

File

./commerce_product_bundle.module, line 1091
Allows the bundling of products in Drupal Commerce.

Code

function commerce_product_bundle_commerce_line_item_type_info() {
  return array(
    'bundle' => array(
      'type' => 'bundle',
      'name' => t('Bundle Item'),
      'description' => t('References a bundled product.'),
      'add_form_submit_value' => t('Add bundle product'),
      'base' => 'commerce_product_bundle_line_item',
      'callbacks' => array(
        'configuration' => 'commerce_product_bundle_configure_line_item',
      ),
    ),
  );
}