function paymentreference_delete_by_pid in Payment 7
Delete a Payment from the queue by PID.
Parameters
integer $pid:
3 calls to paymentreference_delete_by_pid()
- PaymentreferenceTestQueueWebTestCase::testQueueCRUD in modules/
paymentreference/ tests/ paymentreference_test/ tests/ PaymentreferenceTestQueueWebTestCase.test - paymentreference_field_insert in modules/
paymentreference/ paymentreference.module - Implements hook_field_insert().
- paymentreference_payment_delete in modules/
paymentreference/ paymentreference.module - Implements hook_ENTITY_TYPE_ACTION().
File
- modules/
paymentreference/ paymentreference.module, line 395 - Hook implementations and general functions.
Code
function paymentreference_delete_by_pid($pid) {
db_delete('paymentreference')
->condition('pid', $pid)
->execute();
}