function uc_order_pane_line_items_submit in Ubercart 7.3
Form submit callback: Update line items titles and amounts in an order.
1 call to uc_order_pane_line_items_submit()
- uc_order_pane_line_items in uc_order/
uc_order.order_pane.inc - Handles the "Line Items" order pane.
1 string reference to 'uc_order_pane_line_items_submit'
- uc_order_pane_line_items in uc_order/
uc_order.order_pane.inc - Handles the "Line Items" order pane.
File
- uc_order/
uc_order.order_pane.inc, line 807 - This file contains the callbacks for the default order panes supplied with Ubercart and their corresponding helper functions.
Code
function uc_order_pane_line_items_submit($form, &$form_state) {
$values = $form_state['values'];
if (is_array($values['line_items'])) {
foreach ($values['line_items'] as $line) {
if (is_numeric($line['li_id']) && intval($line['li_id']) > 0 && isset($line['title']) && isset($line['amount'])) {
uc_order_update_line_item($line['li_id'], $line['title'], $line['amount']);
}
}
}
}