You are here

function uc_discounts_skus_delete in Ubercart Discounts (Alternative) 7.2

Same name and namespace in other branches
  1. 6.2 uc_discounts/uc_discounts.module \uc_discounts_skus_delete()

Deletes all uc_discounts_skus rows for a discount.

Parameters

int $discount_id:

1 call to uc_discounts_skus_delete()
uc_discounts_admin_discount_edit_form_submit in uc_discounts/uc_discounts.admin.inc
Submit handler for uc_discounts_admin_discount_edit_form().

File

uc_discounts/uc_discounts.module, line 1203

Code

function uc_discounts_skus_delete($discount_id) {
  db_delete('uc_discounts_skus')
    ->condition('discount_id', $discount_id)
    ->execute();
}