You are here

function commerce_order_delete_multiple in Commerce Core 7

Deletes multiple orders by ID.

Parameters

$order_ids: An array of order IDs to delete.

Return value

TRUE on success, FALSE otherwise.

2 calls to commerce_order_delete_multiple()
CommerceOrderCRUDTestCase::testCommerceOrderCrud in modules/order/tests/commerce_order.test
Test the order CRUD functions.
commerce_order_delete in modules/order/commerce_order.module
Deletes an order by ID.

File

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

Code

function commerce_order_delete_multiple($order_ids) {
  return entity_get_controller('commerce_order')
    ->delete($order_ids);
}