function uc_line_item_subtotal in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_order/uc_order_line_item.inc \uc_line_item_subtotal()
- 6.2 uc_order/uc_order.line_item.inc \uc_line_item_subtotal()
Handles the subtotal line item.
1 string reference to 'uc_line_item_subtotal'
- uc_order_uc_line_item in uc_order/
uc_order.module - Implements hook_uc_line_item().
File
- uc_order/
uc_order.line_item.inc, line 17 - Contains the callbacks for the default line items for orders and the various functions that make line items work.
Code
function uc_line_item_subtotal($op, $order) {
switch ($op) {
case 'load':
$lines[] = array(
'id' => 'subtotal',
'title' => t('Subtotal'),
'amount' => uc_order_get_total($order, TRUE),
);
return $lines;
}
}