function commerce_discount_compatibility_strategies in Commerce Discount 7
Returns an array of discount compatibility strategies.
Returned array used in a radio buttons select list.
2 string references to 'commerce_discount_compatibility_strategies'
- commerce_discount_install_helper in ./
commerce_discount.install - Helper function to define and create the required fields & instances.
- commerce_discount_update_7106 in ./
commerce_discount.install - Add discount compatibility fields to all discount types.
File
- ./
commerce_discount.module, line 922 - Defines the discount and discount offer entities, bundles and functionality.
Code
function commerce_discount_compatibility_strategies() {
return array(
'any' => t('Any discount'),
'except' => t('Any discount except specific discounts'),
'only' => t('Only with specific discounts'),
'none' => t('Not with any other discount'),
);
}