function pay_transaction::delete in Pay 7
Same name and namespace in other branches
- 6 includes/handlers/pay_transaction.inc \pay_transaction::delete()
Delete this transaction.
1 call to pay_transaction::delete()
- pay_transaction::do_action in includes/
handlers/ pay_transaction.inc - Perform an action on this transaction.
File
- includes/
handlers/ pay_transaction.inc, line 309 - A base class for payment transactions.
Class
- pay_transaction
- @file A base class for payment transactions.
Code
function delete() {
// Call any actions that might want to know about this.
$this
->drupal_invoke('pay_transaction_delete');
// Delete any activities associated with this transaction.
db_delete('pay_activity')
->condition('pxid', $this->pxid)
->execute();
// Delete this transaction from the database.
db_delete('pay_transaction')
->condition('pxid', $this->pxid)
->execute();
return TRUE;
}