Skip navigation
Help

hook_uc_line_item_data_alter

7 uc_order.api.php hook_uc_line_item_data_alter(&$items)

Alters the line item definitions declared in hook_uc_line_item().

Parameters

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

Related topics

1 invocation of hook_uc_line_item_data_alter()

File

ubercart/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;
}