function uc_order_create_for_user in Ubercart 7.3
Creates a new order for the specified customer, ready for editing.
1 string reference to 'uc_order_create_for_user'
- uc_order_menu in uc_order/
uc_order.module - Implements hook_menu().
File
- uc_order/
uc_order.admin.inc, line 602 - Order administration menu items.
Code
function uc_order_create_for_user($account) {
global $user;
$order = uc_order_new($account->uid, 'post_checkout');
uc_order_comment_save($order->order_id, $user->uid, t('Order created by the administration.'), 'admin');
drupal_goto('admin/store/orders/' . $order->order_id . '/edit');
}