function commerce_purchase_order_commerce_payment_transaction_delete in Commerce Purchase Order 7
Implements hook_commerce_payment_transaction_delete().
File
- ./
commerce_purchase_order.module, line 219 - Provides an example payment method for Drupal Commerce for testing and development.
Code
function commerce_purchase_order_commerce_payment_transaction_delete($transaction) {
// Delete purchase order when transaction was deleted.
db_delete('commerce_purchase_order')
->condition('transaction_id', $transaction->transaction_id)
->execute();
}