You are here

function uc_stock_action_decrement_stock in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_stock/uc_stock_workflow.inc \uc_stock_action_decrement_stock()
  2. 7.3 uc_stock/uc_stock.rules.inc \uc_stock_action_decrement_stock()

Decreases the stock of ordered products.

2 string references to 'uc_stock_action_decrement_stock'
uc_stock_ca_action in uc_stock/uc_stock.ca.inc
Implements hook_action().
uc_stock_ca_predicate in uc_stock/uc_stock.ca.inc
Implements hook_ca_predicate().

File

uc_stock/uc_stock.ca.inc, line 216
This file contains all the Workflow-NG hooks that are necessary for Workflow integeration with the uc_stock module

Code

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