You are here

function uc_taxes_calculate in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_taxes/uc_taxes.module \uc_taxes_calculate()
  2. 7.3 uc_taxes/uc_taxes.module \uc_taxes_calculate()

Calculates the taxes for an order based on enabled tax modules.

Parameters

$order: The full order object for the order want to calculate taxes for.

Return value

An array of taxes for the order.

2 calls to uc_taxes_calculate()
uc_paypal_ec_submit_form_submit in payment/uc_paypal/uc_paypal.module
uc_paypal_wps_form in payment/uc_paypal/uc_paypal.module

File

uc_taxes/uc_taxes.module, line 443

Code

function uc_taxes_calculate($order) {

  // Find any taxes specified by enabled modules.
  $taxes = module_invoke_all('calculate_tax', $order);
  return $taxes;
}