You are here

function uc_order_create in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.admin.inc \uc_order_create()
  2. 7.3 uc_order/uc_order.module \uc_order_create()

Create a new order and redirect to its edit screen.

1 string reference to 'uc_order_create'
uc_order_menu in uc_order/uc_order.module
Implementation of hook_menu().

File

uc_order/uc_order.module, line 1228

Code

function uc_order_create($uid = NULL) {
  uc_add_js(drupal_get_path('module', 'uc_order') . '/uc_order.js');
  $output = '<div style="position: relative; top: 2px; cursor: pointer;" ' . 'onclick="load_customer_search();">' . uc_store_get_icon('file:order_view') . ' ' . t('Search for an existing customer.') . '</div>';
  $output .= '<div style="position: relative; top: 2px; cursor: pointer;" ' . 'onclick="load_new_customer_form();">' . uc_store_get_icon('file:menu_customers_small') . ' ' . t('Create a new customer.') . '</div>';
  $output .= '<div id="customer-select"></div><br />' . drupal_get_form('uc_order_create_form');
  return $output;
}