function hook_uc_line_item_alter in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_order/uc_order.api.php \hook_uc_line_item_alter()
Alters the line item plugin definitions.
Parameters
array &$items: Array of line item plugin definitions passed by reference.
1 invocation of hook_uc_line_item_alter()
- LineItemManager::__construct in uc_order/
src/ Plugin/ LineItemManager.php - Constructs an LineItemManager object.
File
- uc_order/
uc_order.api.php, line 22 - Hooks provided by the Order module.
Code
function hook_uc_line_item_alter(array &$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;
}