You are here

function uc_shipping_new_shipment_access in Ubercart 7.3

Access callback for the new shipment page.

1 string reference to 'uc_shipping_new_shipment_access'
uc_shipping_menu in shipping/uc_shipping/uc_shipping.module
Implements hook_menu().

File

shipping/uc_shipping/uc_shipping.module, line 167
Organizes ordered products into packages and sets them up for shipment. Shipping method modules may add functionality to generate shipping labels and tracking numbers.

Code

function uc_shipping_new_shipment_access($order) {
  return uc_shipping_order_access($order) && db_query("SELECT COUNT(*) FROM {uc_packages} WHERE order_id = :id AND sid IS NULL", array(
    ':id' => $order->order_id,
  ))
    ->fetchField();
}