function uc_order_line_item in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_line_item()
Implements hook_line_item().
File
- uc_order/
uc_order.module, line 762
Code
function uc_order_line_item() {
$items[] = array(
'id' => 'subtotal',
'title' => t('Subtotal'),
'weight' => 0,
'stored' => FALSE,
'calculated' => FALSE,
'callback' => 'uc_line_item_subtotal',
);
$items[] = array(
'id' => 'generic',
'title' => t('Empty line'),
'weight' => 2,
'stored' => TRUE,
'add_list' => TRUE,
'calculated' => TRUE,
'callback' => 'uc_line_item_generic',
);
$items[] = array(
'id' => 'total',
'title' => t('Total'),
'weight' => 15,
'stored' => FALSE,
'calculated' => FALSE,
'display_only' => TRUE,
'callback' => 'uc_line_item_total',
);
return $items;
}