function discount_type_options in Ubercart Discounts (Alternative) 6.2
Returns an array of discount types with descriptions.
2 calls to discount_type_options()
- discount_type_name in uc_discounts/
uc_discounts.module - uc_discounts_form in uc_discounts/
uc_discounts.admin.inc - Create or edit a discount.
File
- uc_discounts/
uc_discounts.module, line 2153
Code
function discount_type_options() {
static $options = NULL;
if (is_null($options)) {
$options = array(
DISCOUNT_TYPE_PERCENTAGE_OFF => t("Percentage off"),
DISCOUNT_TYPE_PERCENTAGE_OFF_PER_QUALIFYING_ITEM => t("Percentage off per qualifying item"),
DISCOUNT_TYPE_FIXED_AMOUNT_OFF => t("Fixed amount off"),
DISCOUNT_TYPE_FIXED_AMOUNT_OFF_PER_QUALIFYING_ITEM => t("Fixed amount off per qualifying item"),
DISCOUNT_TYPE_FREE_ITEMS => t("Free items"),
);
}
return $options;
}