public function FarmPlanController::create in farmOS 7
Implements EntityAPIControllerInterface.
Overrides EntityAPIController::create
File
- modules/
farm/ farm_plan/ farm_plan.class.inc, line 37 - Farm plan classes.
Class
- FarmPlanController
- Farm plan 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,
'active' => TRUE,
);
return parent::create($values);
}