You are here

public function FarmAssetController::create in farmOS 7

Implements EntityAPIControllerInterface.

Overrides EntityAPIController::create

File

modules/farm/farm_asset/farm_asset.class.inc, line 37
Farm asset classes.

Class

FarmAssetController
Farm asset controller class.

Code

public function create(array $values = array()) {
  global $user;
  $values += array(
    'id' => NULL,
    'name' => '',
    'type' => '',
    'uid' => $user->uid,
    'created' => REQUEST_TIME,
    'changed' => REQUEST_TIME,
    'archived' => 0,
  );
  return parent::create($values);
}