You are here

function hook_line_item_alter in Ubercart 6.2

Alters a line item on an order when the order is loaded.

Parameters

&$item: The line item array.

$order: The order object containing the line item.

1 invocation of hook_line_item_alter()
uc_order_load_line_items in uc_order/uc_order.module
Return an array containing an order's line items ordered by weight.

File

docs/hooks.php, line 703
These are the hooks that are invoked by the Ubercart core.

Code

function hook_line_item_alter(&$item, $order) {
  $account = user_load($order->uid);
  ca_pull_trigger('calculate_line_item_discounts', $item, $account);
}