function uc_taxes_calculate in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_taxes/uc_taxes.module \uc_taxes_calculate()
- 6.2 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.
5 calls to uc_taxes_calculate()
- uc_cybersource_hop_form in payment/
uc_cybersource/ uc_cybersource.module - Defines values to be posted to CyberSource.
- uc_line_item_tax_display in uc_taxes/
uc_taxes.module - Tax line item callback.
- uc_paypal_ec_submit_form_submit in payment/
uc_paypal/ uc_paypal.module - Additional submit handler for uc_cart_checkout_review_form().
- uc_paypal_wps_form in payment/
uc_paypal/ uc_paypal.module - Returns the form elements for the Website Payments Standard form.
- uc_taxes_uc_order in uc_taxes/
uc_taxes.module - Implements hook_uc_order().
File
- uc_taxes/
uc_taxes.module, line 525 - Ubercart Taxes module.
Code
function uc_taxes_calculate($order) {
// Find any taxes specified by enabled modules.
$taxes = module_invoke_all('uc_calculate_tax', $order);
return $taxes;
}