You are here

function commerce_order_load in Commerce Core 7

Loads an order by ID.

33 calls to commerce_order_load()
CommerceOrderCRUDTestCase::testCommerceOrderCrud in modules/order/tests/commerce_order.test
Test the order CRUD functions.
CommercePaymentTransactionEntityController::buildContent in modules/payment/includes/commerce_payment_transaction.controller.inc
Builds a structured array representing the entity's content.
commerce_cart_checkout_form_cancel_submit in modules/cart/commerce_cart.module
Submit handler to take back the order to cart status on cancel in checkout.
commerce_cart_line_item_views_form_submit in modules/cart/commerce_cart.module
Submit handler to show the shopping cart updated message.
commerce_cart_order_load in modules/cart/commerce_cart.module
Loads the shopping cart order for the specified user.

... See full list

1 string reference to 'commerce_order_load'
commerce_order_entity_info in modules/order/commerce_order.module
Implements hook_entity_info().

File

modules/order/commerce_order.module, line 755
Defines the core Commerce order entity and API functions to manage orders and interact with them.

Code

function commerce_order_load($order_id) {
  $orders = commerce_order_load_multiple(array(
    $order_id,
  ), array());
  return $orders ? reset($orders) : FALSE;
}