You are here

function uc_line_item_total in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_order/uc_order_line_item.inc \uc_line_item_total()
  2. 6.2 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_uc_line_item in uc_order/uc_order.module
Implements hook_uc_line_item().

File

uc_order/uc_order.line_item.inc, line 32
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, $order) {
  switch ($op) {
    case 'display':
      $lines[] = array(
        'id' => 'total',
        'title' => t('Order total'),
        'amount' => uc_order_get_total($order),
      );
      return $lines;
  }
}