function _line_item_data in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order_line_item.inc \_line_item_data()
Returns data from a line item by ID and the array key.
9 calls to _line_item_data()
- uc_line_items_calculate in uc_order/
uc_order.line_item.inc - Calculates the total value of line items of types that should be calculated.
- uc_order_add_line_item_form in uc_order/
uc_order.admin.inc - Form to add a line item to an order.
- uc_order_add_line_item_form_submit in uc_order/
uc_order.admin.inc - Form submission handler for uc_order_add_line_item_form().
- uc_order_add_line_item_form_validate in uc_order/
uc_order.admin.inc - Validates new line item data.
- uc_order_line_item_add in uc_order/
uc_order.line_item.inc - Adds a line item to an order.
File
- uc_order/
uc_order.line_item.inc, line 178 - This file contains the callbacks for the default line items for orders and the various functions that make line items work.
Code
function _line_item_data($item_id, $key) {
$items = _line_item_list();
foreach ($items as $item) {
if ($item['id'] == $item_id) {
return $item[$key];
}
}
}