function paymentreference_delete_by_field_instance in Payment 7
Delete a Payment from the queue by field instance.
Parameters
string $entity_type:
string $bundle:
string $field_name:
2 calls to paymentreference_delete_by_field_instance()
- PaymentreferenceTestQueueWebTestCase::testQueueCRUD in modules/
paymentreference/ tests/ paymentreference_test/ tests/ PaymentreferenceTestQueueWebTestCase.test - paymentreference_field_delete_instance in modules/
paymentreference/ paymentreference.module - Implements hook_field_delete_instance().
File
- modules/
paymentreference/ paymentreference.module, line 419 - Hook implementations and general functions.
Code
function paymentreference_delete_by_field_instance($entity_type, $bundle, $field_name) {
db_delete('paymentreference')
->condition('field_name', $field_name)
->condition('entity_type', $entity_type)
->condition('bundle', $bundle)
->execute();
}