You are here

function uc_discounts_qualifying_type_options in Ubercart Discounts (Alternative) 7.2

Returns options array of qualifying types with descriptions.

@staticvar null $options

Return value

array

2 calls to uc_discounts_qualifying_type_options()
uc_discounts_admin_discount_edit_form in uc_discounts/uc_discounts.admin.inc
Generates admin form to create or edit a discount.
uc_discounts_qualifying_type_name in uc_discounts/uc_discounts.module
Get the options 'type' name using option ID.

File

uc_discounts/uc_discounts.module, line 2402

Code

function uc_discounts_qualifying_type_options() {
  static $options = NULL;
  if (is_null($options)) {
    $options = array(
      UC_DISCOUNTS_QUALIFYING_TYPE_MINIMUM_PRICE => t("Minimum price"),
      UC_DISCOUNTS_QUALIFYING_TYPE_MINIMUM_QUANTITY => t("Minimum quantity"),
    );
  }
  return $options;
}