You are here

function commerce_stock_checkout_form_validate in Commerce Stock 7

Same name and namespace in other branches
  1. 7.2 commerce_stock.module \commerce_stock_checkout_form_validate()

Form validate handler: validate checkout form.

Make sure all items in the cart are in stock

1 string reference to 'commerce_stock_checkout_form_validate'
commerce_stock_form_alter in ./commerce_stock.module
Implements hook_form_alter().

File

./commerce_stock.module, line 161
Allow commerce products to have stock levels associated with their SKU

Code

function commerce_stock_checkout_form_validate($form, &$form_state) {
  $order_wrapper = entity_metadata_wrapper('commerce_order', $form_state['order']);
  commerce_stock_checkout_validate($order_wrapper);
}