You are here

function commerce_license_flush_caches in Commerce License 7

Implements hook_flush_caches().

Ensures that products and line items have the required license fields.

File

./commerce_license.module, line 308
Provides a framework for selling access to local or remote resources.

Code

function commerce_license_flush_caches() {
  $product_types = commerce_license_product_types();
  commerce_license_configure_product_types($product_types);
  $line_item_types = commerce_license_line_item_types();
  commerce_license_configure_line_item_types($line_item_types);
}