function pay_transaction::delete in Pay 6
Same name and namespace in other branches
- 7 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 278 - 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_query("DELETE FROM {pay_activity} WHERE pxid = %d", $this->pxid);
// Delete this transaction from the database.
db_query("DELETE FROM {pay_transaction} WHERE pxid = %d", $this->pxid);
return TRUE;
}