You are here

public function CommerceFileLicenseEntity::link_line_item in Commerce File 7

Add a line item

Return value

TRUE if a new line item was linked

File

includes/commerce_file_license.entity.inc, line 576
Provides a base class for CommerceFileLicenseEntity.

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

public function link_line_item($new_line_item_id) {
  $field_name = _commerce_file_get_field_names('license_line_items');
  return $this
    ->_add_field_value($field_name, array(
    'line_item_id' => $new_line_item_id,
  ), 'line_item_id');
}