You are here

function hook_uc_line_item_data_alter in Ubercart 7.3

Alters the line item definitions declared in hook_uc_line_item().

Parameters

&$items: The combined return value of hook_uc_line_item().

1 invocation of hook_uc_line_item_data_alter()
_uc_line_item_list in uc_order/uc_order.line_item.inc
Builds a list of line items defined in the enabled modules.

File

uc_order/uc_order.api.php, line 114
Hooks provided by the Order module.

Code

function hook_uc_line_item_data_alter(&$items) {

  // Tax amounts are added in to other line items, so the actual tax line
  // items should not be added to the order total.
  $items['tax']['calculated'] = FALSE;

  // Taxes are included already, so the subtotal without taxes doesn't
  // make sense.
  $items['tax_subtotal']['callback'] = NULL;
}