You are here

function commerce_product_bundle_field_formatter_default_settings in Commerce Product Bundle 7

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

Returns the default settings for the form display.

4 calls to commerce_product_bundle_field_formatter_default_settings()
commerce_product_bundle_add_to_cart_form in ./commerce_product_bundle.module
Builds the add to cart form, for product bundles.
commerce_product_bundle_field_formatter_info in ./commerce_product_bundle.module
Implements hook_field_formatter_info().
commerce_product_bundle_field_formatter_settings_form in ./commerce_product_bundle.module
Implements hook_field_formatter_settings_form().
commerce_product_bundle_field_formatter_settings_summary in ./commerce_product_bundle.module
Implements hook_field_formatter_settings_summary().

File

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

Code

function commerce_product_bundle_field_formatter_default_settings() {
  return array(
    'show_quantity' => FALSE,
    'default_quantity' => 1,
    'show_fieldset' => TRUE,
    'bundle_type' => 'single',
  );
}