You are here

function uc_discounts_roles_delete in Ubercart Discounts (Alternative) 6.2

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

Deletes all uc_discounts_roles rows for a discount.

1 call to uc_discounts_roles_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 1140

Code

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