You are here

function uc_discounts_skus_delete in Ubercart Discounts (Alternative) 6.2

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

Deletes all uc_discounts_skus rows for a discount.

1 call to uc_discounts_skus_delete()
uc_discounts_form_submit in uc_discounts/uc_discounts.admin.inc
Submit handler for uc_discounts_form().

File

uc_discounts/uc_discounts.module, line 1116

Code

function uc_discounts_skus_delete($discount_id) {
  $query = "DELETE FROM {uc_discounts_skus} WHERE discount_id=%d";
  db_query($query, $discount_id);
}