You are here

function uc_order_condition_has_products_options in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_order/uc_order.rules.inc \uc_order_condition_has_products_options()

Options callback.

See also

uc_order_condition_has_products()

1 string reference to 'uc_order_condition_has_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 562
Hooks and functions for uc_order Rules integration.

Code

function uc_order_condition_has_products_options() {
  $options = array();
  $result = db_query('SELECT nid FROM {uc_products}');
  foreach ($result as $row) {
    $options += uc_product_get_models($row->nid, FALSE);
  }
  asort($options);
  return $options;
}