You are here

function uc_stock_action_increment_stock in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_stock/uc_stock.ca.inc \uc_stock_action_increment_stock()

Increase the stock of ordered products.

2 string references to 'uc_stock_action_increment_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 51
Rules hooks for uc_stock.module.

Code

function uc_stock_action_increment_stock($order, $settings) {
  if (is_array($order->products)) {
    array_walk($order->products, 'uc_stock_increment_product_stock', $order);
  }
}