hook_calculate_tax

Function hook_calculate_tax() in uc_taxes.module:

<?php
  hook_calculate_tax
($order)
?>


Description:

Calculate tax line items for an order.

Parameters:
  • $order - The order to which taxes are to be calculated and applied. May be the full order object or an order id.
Return value:

An array of tax line items. The keys of this array are the line item ids, so they must be unique over all taxes. Each line item is an associative array containing the tax's id, name, amount, and weight.