You are here

function commerce_license_role_flush_caches in Commerce License 7

Implements hook_flush_caches().

Ensures that products have the required commerce_license_role field.

1 call to commerce_license_role_flush_caches()
commerce_license_role_settings_form_submit in modules/commerce_license_role/includes/commerce_license_role.admin.inc
Submit callback of the file settings form.

File

modules/commerce_license_role/commerce_license_role.module, line 64
Provides a license type for selling roles.

Code

function commerce_license_role_flush_caches() {
  $product_types = commerce_license_role_product_types();
  commerce_license_role_configure_product_types($product_types);
}