function uc_order_condition_has_products_options in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_order/uc_order.rules.inc \uc_order_condition_has_products_options()
Options callback.
See also
uc_order_condition_has_products()
File
- uc_order/
uc_order.rules.inc, line 282 - Rules integration for order-related entity events, conditions, and actions.
Code
function uc_order_condition_has_products_options() {
$options = [];
$result = db_query('SELECT nid FROM {uc_products}');
foreach ($result as $row) {
$options += uc_product_get_models($row->nid, FALSE);
}
asort($options);
return $options;
}