You are here

function _commerce_file_line_item_wrapper_save in Commerce File 7

Save a line item wrapper

1 call to _commerce_file_line_item_wrapper_save()
commerce_file_refresh_line_item in ./commerce_file.module
Refresh a line item with the current product license data

File

./commerce_file.module, line 1332
Provides integration of file licenses with Commerce

Code

function _commerce_file_line_item_wrapper_save($line_item_wrapper) {
  commerce_line_item_save(clone $line_item_wrapper
    ->value());
  entity_get_controller('commerce_line_item')
    ->resetCache(array(
    $line_item_wrapper->line_item_id
      ->value(),
  ));
}