public function CommerceFileLicenseLogEntityController::create in Commerce File 7
Implements EntityAPIControllerInterface::create().
Overrides EntityAPIController::create
File
- includes/
commerce_file_license_log.controller.inc, line 12 - The controller for the Commerce File License Log entity containing the CRUD operations.
Class
- CommerceFileLicenseLogEntityController
- @file The controller for the Commerce File License Log entity containing the CRUD operations.
Code
public function create(array $values = array()) {
// merge in defaults
$values += array(
'timestamp' => REQUEST_TIME,
'hostname' => ip_address(),
'is_new' => empty($values[$this->idKey]),
);
return parent::create($values);
}