You are here

function commerce_cart_field_info_alter in Commerce Core 7

Implements hook_field_info_alter().

File

modules/cart/commerce_cart.module, line 2593
Implements the shopping cart system and add to cart features.

Code

function commerce_cart_field_info_alter(&$info) {

  // Set the default display formatter for product reference fields to the Add
  // to Cart form.
  $info['commerce_product_reference']['default_formatter'] = 'commerce_cart_add_to_cart_form';
}