public function EntityLegalDocumentVersionController::create in Entity Legal 7
Same name and namespace in other branches
- 7.2 entity_legal.entity_controller.inc \EntityLegalDocumentVersionController::create()
Implements EntityAPIControllerInterface.
Overrides EntityAPIController::create
File
- ./
entity_legal.entity_controller.inc, line 133 - Entity API controller classes for entity_legal module.
Class
- EntityLegalDocumentVersionController
- Legal document version exportable controller.
Code
public function create(array $values = array()) {
global $user;
if (empty($values['uid'])) {
$values['uid'] = $user->uid;
}
if (empty($values['created'])) {
$values['created'] = time();
}
return parent::create($values);
}