function uc_discounts_delete in Ubercart Discounts (Alternative) 6.2
Delete a discount.
See also
1 string reference to 'uc_discounts_delete'
- uc_discounts_menu in uc_discounts/
uc_discounts.module - Implementation of hook_menu().
File
- uc_discounts/
uc_discounts.admin.inc, line 835
Code
function uc_discounts_delete($form_state, $discount_id) {
$discount = uc_discounts_load($discount_id);
$form = array(
"discount_id" => array(
"#type" => "value",
"#value" => $discount_id,
),
);
$output = confirm_form($form, t("Delete @row?", array(
"@row" => $discount->name,
)), 'admin/store/uc_discounts');
return $output;
}