public function Invite::__construct in Invite 7.4
Overrides Entity::__construct
File
- includes/
invite.controller.inc, line 173
Class
- Invite
- Invite class.
Code
public function __construct($values = array()) {
if (isset($values['inviter'])) {
$this
->setUser($values['inviter']);
unset($values['inviter']);
}
if (!isset($values['label']) && isset($values['type']) && ($type = invite_get_types($values['type']))) {
// Initialize the label with the type label, so newly created profiles
// have that as interim label.
$values['label'] = $type->label;
}
$this->sendNotification = TRUE;
parent::__construct($values, 'invite');
}