You are here

function uc_ups_confirm_shipment in Ubercart 8.4

Same name and namespace in other branches
  1. 5 shipping/uc_ups/uc_ups.module \uc_ups_confirm_shipment()
  2. 6.2 shipping/uc_ups/uc_ups.ship.inc \uc_ups_confirm_shipment()
  3. 7.3 shipping/uc_ups/uc_ups.ship.inc \uc_ups_confirm_shipment()

Last chance for user to review shipment.

See also

uc_ups_confirm_shipment_submit()

theme_uc_ups_confirm_shipment()

1 string reference to 'uc_ups_confirm_shipment'
uc_ups_menu in shipping/uc_ups/uc_ups.module
Implements hook_menu().

File

shipping/uc_ups/src/Plugin/Ubercart/FulfillmentMethod/uc_ups.ship.inc, line 551
UPS functions for label generation.

Code

function uc_ups_confirm_shipment($form, FormStateInterface $form_state, $order) {
  $form['digest'] = [
    '#type' => 'hidden',
    '#value' => $_SESSION['ups']['digest'],
  ];
  $form['actions'] = [
    '#type' => 'actions',
  ];
  $form['actions']['submit'] = [
    '#type' => 'submit',
    '#value' => t('Request Pickup'),
  ];
  return $form;
}