function uc_order_pane_products_add in Ubercart 7.3
Sets the order pane to show the add product to order form.
1 string reference to 'uc_order_pane_products_add'
- uc_order_product_select_form in uc_order/
uc_order.order_pane.inc - Form to choose a product to add to the order.
File
- uc_order/
uc_order.order_pane.inc, line 518 - This file contains the callbacks for the default order panes supplied with Ubercart and their corresponding helper functions.
Code
function uc_order_pane_products_add($form, &$form_state) {
$form_state['products_action'] = 'add_product';
$form_state['node'] = node_load($form_state['values']['product_controls']['nid']);
unset($form_state['refresh_products']);
$form_state['rebuild'] = TRUE;
}