function commerce_file_commerce_cart_order_refresh in Commerce File 7
Implements hook_commerce_cart_order_refresh().
File
- ./
commerce_file.module, line 986 - Provides integration of file licenses with Commerce
Code
function commerce_file_commerce_cart_order_refresh($order_wrapper) {
$refreshed =& drupal_static(__FUNCTION__, array());
$order_id = $order_wrapper
->getIdentifier();
if (isset($refreshed[$order_id])) {
return;
}
$refreshed[$order_id] = TRUE;
if (empty($order_wrapper->commerce_line_items)) {
return;
}
foreach ($order_wrapper->commerce_line_items as $delta => $line_item_wrapper) {
commerce_file_refresh_line_item($line_item_wrapper, $order_wrapper);
}
}