You are here

function bpc_taxonomy_module_implements_alter in Commerce Bulk Product Creation 7

Same name and namespace in other branches
  1. 7.2 modules/bpc_taxonomy/bpc_taxonomy.module \bpc_taxonomy_module_implements_alter()

Implements hook_module_implements_alter().

We make sure that our implementation of hook_form_FORM_ID_alter() is invoked after commerce_bpc's, by moving it to the end of the list of implementations.

File

modules/bpc_taxonomy/bpc_taxonomy.module, line 167
The Commerce BPC Taxonomy integration module enables the use of taxonomy term references in bulk creation.

Code

function bpc_taxonomy_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'form_field_ui_field_edit_form_alter') {
    $group = $implementations['bpc_taxonomy'];
    unset($implementations['bpc_taxonomy']);
    $implementations['bpc_taxonomy'] = $group;
  }
}