You are here

function PaymentEntityController::delete in Payment 7

Implements EntityAPIControllerInterface.

Parameters

$transaction: Optionally a DatabaseTransaction object to use. Allows overrides to pass in their transaction object.

Overrides EntityAPIController::delete

File

./payment.classes.inc, line 475
The API and related functions for executing and managing payments.

Class

PaymentEntityController
Entity API controller for payment entities.

Code

function delete($ids, DatabaseTransaction $transaction = NULL) {
  parent::delete($ids, $transaction);
  db_delete('payment_line_item')
    ->condition('pid', $ids)
    ->execute();
  db_delete('payment_status_item')
    ->condition('pid', $ids)
    ->execute();
}