function commerce_avatax_module_implements_alter in Drupal Commerce Connector for AvaTax 7.5
Implements hook_module_implements_alter().
File
- ./
commerce_avatax.module, line 57 - AvaTax service integration from Avalara, Inc.
Code
function commerce_avatax_module_implements_alter(&$implementations, $hook) {
// Place this module's implementation of hook_form_alter() at the
// end of the invocation in order to ensure our custom submit function
// added to the checkout submit function runs last (once the customer
// profile is saved).
if (in_array($hook, array(
'form_alter',
'commerce_cart_order_refresh',
)) && isset($implementations['commerce_avatax'])) {
$group = $implementations['commerce_avatax'];
unset($implementations['commerce_avatax']);
$implementations['commerce_avatax'] = $group;
}
}