function commerce_stock_rules_condition_info in Commerce Stock 7.2
Same name and namespace in other branches
- 7 commerce_stock.rules.inc \commerce_stock_rules_condition_info()
Implements hook_rules_condition_info().
File
- ./
commerce_stock.rules.inc, line 90 - Rules integration for Commerce Stock.
Code
function commerce_stock_rules_condition_info() {
$conditions = array();
$conditions['commerce_stock_order_has_out_of_stock'] = array(
'label' => t('Order has products that are out of stock'),
'parameter' => array(
'order' => array(
'type' => 'commerce_order',
'label' => t('Order'),
),
),
'group' => t('Commerce Stock'),
'callbacks' => array(
'execute' => 'commerce_stock_rules_order_has_out_of_stock',
),
);
return $conditions;
}