function uc_order_condition_products_options in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_order/uc_order.rules.inc \uc_order_condition_products_options()
Product options callback.
1 string reference to 'uc_order_condition_products_options'
- uc_order_rules_condition_info in uc_order/
uc_order.rules.inc - Implements hook_rules_condition_info().
File
- uc_order/
uc_order.rules.inc, line 606 - Hooks and functions for uc_order Rules integration.
Code
function uc_order_condition_products_options() {
$options = array(
'all' => t('- All products -'),
);
$options += db_query('SELECT nid, model FROM {uc_products} ORDER BY model')
->fetchAllKeyed();
return $options;
}