function commerce_order_delete in Commerce Core 7
Deletes an order by ID.
Parameters
$order_id: The ID of the order to delete.
Return value
TRUE on success, FALSE otherwise.
2 calls to commerce_order_delete()
- CommerceOrderCRUDTestCase::testCommerceOrderCrud in modules/
order/ tests/ commerce_order.test - Test the order CRUD functions.
- commerce_order_order_delete_form_submit in modules/
order/ includes/ commerce_order.forms.inc - Submit callback for commerce_order_order_delete_form().
File
- modules/
order/ commerce_order.module, line 821 - Defines the core Commerce order entity and API functions to manage orders and interact with them.
Code
function commerce_order_delete($order_id) {
return commerce_order_delete_multiple(array(
$order_id,
));
}