function uc_discounts_delete_submit in Ubercart Discounts (Alternative) 6.2
Submit handler for uc_discounts_delete().
File
- uc_discounts/
uc_discounts.admin.inc, line 845
Code
function uc_discounts_delete_submit($form, &$form_state) {
if ($form_state["values"]["confirm"]) {
$discount = uc_discounts_load($form_state["values"]["discount_id"]);
uc_discounts_delete_all($discount);
drupal_set_message(t("Discount deleted."));
}
$form_state["redirect"] = "admin/store/uc_discounts";
}