You are here

function commerce_product_types_reset in Commerce Core 7

Resets the cached list of product types.

7 calls to commerce_product_types_reset()
CommerceProductCRUDTestCase::testCommerceProductTypeCrud in modules/product/tests/commerce_product.test
Test the product type CRUD functions.
CommerceProductUIAdminTest::setUp in modules/product/tests/commerce_product_ui.test
Implementation of setUp().
CommerceProductUIAdminTest::testCommerceProductUIAddProductType in modules/product/tests/commerce_product_ui.test
Test adding a new product type.
CommerceProductUIAdminTest::testCommerceProductUIDeleteProductType in modules/product/tests/commerce_product_ui.test
Delete a product type.
commerce_product_configure_product_fields in modules/product/commerce_product.module
Configures the fields on product types provided by other modules.

... See full list

File

modules/product/commerce_product.module, line 405
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_types_reset() {
  $product_types =& drupal_static('commerce_product_types');
  $product_types = NULL;
  entity_info_cache_clear();
}