function commerce_product_bundle_field_formatter_info in Commerce Product Bundle 7
Same name and namespace in other branches
- 7.2 commerce_product_bundle.module \commerce_product_bundle_field_formatter_info()
Implements hook_field_formatter_info().
Provide an option for the user to add this as a product kit item.
File
- ./
commerce_product_bundle.module, line 13 - Allows the bundling of products in Drupal Commerce.
Code
function commerce_product_bundle_field_formatter_info() {
return array(
'commerce_bundle_product_add_to_cart_form' => array(
'label' => t('Product Bundle: Add to cart form'),
'description' => t('Render the product bundle add to cart form. This formatter should be applied to the sub products of the bundle. You must not set this on a display node.'),
'field types' => array(
'commerce_product_reference',
),
'settings' => commerce_product_bundle_field_formatter_default_settings(),
),
);
}