function uc_coupon_workflow_cid_options in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 7.2 uc_coupon_workflow/uc_coupon_workflow.rules.inc \uc_coupon_workflow_cid_options()
Options list callback for list of coupons to assign.
1 string reference to 'uc_coupon_workflow_cid_options'
- uc_coupon_workflow_rules_action_info in uc_coupon_workflow/
uc_coupon_workflow.rules.inc - Implements hook_rules_action_info().
File
- uc_coupon_workflow/
uc_coupon_workflow.rules.inc, line 193 - Rules integration for uc_coupon_workflow
Code
function uc_coupon_workflow_cid_options() {
return db_query('SELECT cid, name FROM {uc_coupons} WHERE status = 1')
->fetchAllKeyed();
}