You are here

public function CommerceFileLicenseEntityController::create in Commerce File 7

Implements EntityAPIControllerInterface::create().

Overrides EntityAPIController::create

File

includes/commerce_file_license.controller.inc, line 12
The controller for the File License entity containing the CRUD operations.

Class

CommerceFileLicenseEntityController
@file The controller for the File License entity containing the CRUD operations.

Code

public function create(array $values = array()) {

  // merge in defaults
  $values += array(
    'type' => COMMERCE_FILE_LICENSE_ENTITY_NAME,
    'status' => 'pending',
    'is_new' => empty($values[$this->idKey]),
  );

  // call create
  return parent::create($values);
}