function uc_discounts_codes_to_str in Ubercart Discounts (Alternative) 6.2
Same name and namespace in other branches
- 7.2 uc_discounts/uc_discounts.module \uc_discounts_codes_to_str()
Create a codes string from passed codes array. Note: returns "" if passed array is null
3 calls to uc_discounts_codes_to_str()
- uc_checkout_pane_discounts in uc_discounts/
uc_discounts.module - Discounts checkout pane callback
- uc_discounts_form in uc_discounts/
uc_discounts.admin.inc - Create or edit a discount.
- uc_discounts_order in uc_discounts/
uc_discounts.module - Implementation of hook_order().
File
- uc_discounts/
uc_discounts.module, line 2126
Code
function uc_discounts_codes_to_str($codes) {
return implode("\n", (array) $codes);
}