function uc_line_item_total in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order_line_item.inc \uc_line_item_total()
- 7.3 uc_order/uc_order.line_item.inc \uc_line_item_total()
Handles the total line item.
1 string reference to 'uc_line_item_total'
- uc_order_line_item in uc_order/
uc_order.module - Implements hook_line_item().
File
- uc_order/
uc_order.line_item.inc, line 73 - This file contains the callbacks for the default line items for orders and the various functions that make line items work.
Code
function uc_line_item_total($op, $arg1) {
switch ($op) {
case 'display':
$lines[] = array(
'id' => 'total',
'title' => t('Total'),
'amount' => uc_order_get_total($arg1),
);
return $lines;
}
}