function uc_stock_action_decrement_stock in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_stock/uc_stock_workflow.inc \uc_stock_action_decrement_stock()
- 6.2 uc_stock/uc_stock.ca.inc \uc_stock_action_decrement_stock()
Decreases the stock of ordered products.
2 string references to 'uc_stock_action_decrement_stock'
- uc_stock_default_rules_configuration in uc_stock/
uc_stock.rules_defaults.inc - Implements hook_default_rules_configuration().
- uc_stock_rules_action_info in uc_stock/
uc_stock.rules.inc - Implements hook_rules_action_info().
File
- uc_stock/
uc_stock.rules.inc, line 42 - Rules hooks for uc_stock.module.
Code
function uc_stock_action_decrement_stock($order) {
if (is_array($order->products)) {
array_walk($order->products, 'uc_stock_adjust_product_stock', $order);
}
}