function uc_order_add_line_item_form_validate in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_add_line_item_form_validate()
- 6.2 uc_order/uc_order.admin.inc \uc_order_add_line_item_form_validate()
Validates new line item data.
See also
File
- uc_order/
uc_order.admin.inc, line 1199 - Order administration menu items.
Code
function uc_order_add_line_item_form_validate($form, &$form_state) {
$func = _uc_line_item_data($form_state['values']['line_item_id'], 'callback');
if (function_exists($func) && ($form = $func('form', $form_state['values']['order_id'])) != NULL) {
$func('validate', $form, $form_state);
}
}