function uc_discounts_terms_delete in Ubercart Discounts (Alternative) 7.2
Same name and namespace in other branches
- 6.2 uc_discounts/uc_discounts.module \uc_discounts_terms_delete()
Deletes all uc_discounts_terms rows for a discount.
Parameters
int $discount_id:
1 call to uc_discounts_terms_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 1192
Code
function uc_discounts_terms_delete($discount_id) {
db_delete('uc_discounts_terms')
->condition('discount_id', $discount_id)
->execute();
}