You are here

function uc_discounts_discount_type_name in Ubercart Discounts (Alternative) 7.2

Get a discount type name using discount type constant.

Parameters

const $discount_type:

Return value

string

2 calls to uc_discounts_discount_type_name()
uc_discounts_admin_discounts_list in uc_discounts/uc_discounts.admin.inc
Generates admin page listing all saved discounts.
uc_discounts_admin_report_discounts_list in uc_discounts/uc_discounts.admin.inc
Generate admin report page content of all discount usage.

File

uc_discounts/uc_discounts.module, line 2457

Code

function uc_discounts_discount_type_name($discount_type) {
  $options = uc_discounts_discount_type_options();
  return $options[$discount_type];
}