public function InviteController::create in Invite 7.4
Implements EntityAPIControllerInterface.
Overrides EntityAPIController::create
File
- includes/
invite.controller.inc, line 15
Class
Code
public function create(array $values = array()) {
global $user;
$values += array(
'created' => REQUEST_TIME,
'expiry' => REQUEST_TIME + variable_get('invite_default_expiry_time', 30) * 24 * 60 * 60,
'uid' => $user->uid,
'invitee' => 0,
'status' => 1,
'reg_code' => invite_generate_code(),
'data' => array(),
);
return parent::create($values);
}