You are here

function commerce_product_reference_module_implements_alter in Commerce Core 7

Implements hook_module_implements_alter().

File

modules/product_reference/commerce_product_reference.module, line 1121
Defines a field type for referencing products from other entities.

Code

function commerce_product_reference_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'entity_info_alter') {

    // Place this module's implementation of hook_entity_info_alter() is at the
    // end of the invocation list so it can react to view modes altered onto the
    // product entity type from other modules like Display Suite.
    $group = $implementations['commerce_product_reference'];
    unset($implementations['commerce_product_reference']);
    $implementations['commerce_product_reference'] = $group;
  }
}