Skip navigation
Help

hook_uc_line_item_alter

7 uc_order.api.php hook_uc_line_item_alter(&$item, $order)

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.

Related topics

1 invocation of hook_uc_line_item_alter()

File

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

Code

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