You are here

function uc_order_edit in Ubercart 5

Display the order edit screen.

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

File

uc_order/uc_order.module, line 1602

Code

function uc_order_edit($order_id) {
  $order = uc_order_load($order_id);
  if ($order === FALSE) {
    drupal_set_message(t('Order @order_id does not exist.', array(
      '@order_id' => $order_id,
    )));
    drupal_goto('admin/store/orders');
  }
  $output = drupal_get_form('uc_order_edit_form', $order);
  return $output;
}