You are here

function uc_order_condition_products_options in Ubercart 8.4

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

Product options callback.

File

uc_order/uc_order.rules.inc, line 326
Rules integration for order-related entity events, conditions, and actions.

Code

function uc_order_condition_products_options() {
  $options = [
    'all' => t('- All products -'),
  ];
  $options += db_query('SELECT nid, model FROM {uc_products} ORDER BY model')
    ->fetchAllKeyed();
  return $options;
}