You are here

function _commerce_file_line_item_save in Commerce File 7

Save a line item

File

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

Code

function _commerce_file_line_item_save($line_item) {
  commerce_line_item_save(clone $line_item);
  entity_get_controller('commerce_line_item')
    ->resetCache(array(
    $line_item->line_item_id,
  ));
}