function payment_commerce_commerce_order_delete in Payment for Drupal Commerce 7
Same name and namespace in other branches
- 7.2 payment_commerce.module \payment_commerce_commerce_order_delete()
Implements hook_ENTITY_TYPE_ACTION().
File
- ./
payment_commerce.module, line 130 - Hook implementations and shared functions.
Code
function payment_commerce_commerce_order_delete($order) {
if (variable_get('payment_commerce_order_delete', FALSE)) {
$pids = payment_commerce_pids_load($order->order_id);
if ($pids) {
entity_delete_multiple('payment', $pids);
}
}
}