You are here

function commerce_product_configure_product_types in Commerce Core 7

Configure the product types defined by enabled modules.

1 call to commerce_product_configure_product_types()
commerce_product_enable in modules/product/commerce_product.module
Implements hook_enable().

File

modules/product/commerce_product.module, line 326
Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.

Code

function commerce_product_configure_product_types() {
  foreach (commerce_product_types() as $type => $product_type) {
    commerce_product_configure_product_type($type);
  }
}