You are here

function uc_tax_module_implements_alter in Ubercart 8.4

Implements hook_module_implements_alter().

Ensures that all other line items are added to the order before tax calculations are made.

File

uc_tax/uc_tax.module, line 24
Ubercart Tax module.

Code

function uc_tax_module_implements_alter(&$implementations, $hook) {
  if (in_array($hook, [
    'uc_order_insert',
    'uc_order_update',
    'entity_view_alter',
  ])) {
    $group = $implementations['uc_tax'];
    unset($implementations['uc_tax']);
    $implementations['uc_tax'] = $group;
  }
}