public function Message::setUser in Message 7
Sets a new user associated with the message.
Parameters
$account: The user account object or the user account id (uid).
File
- includes/
message.message.inc, line 74 - A class used for messages.
Class
- Message
- @file A class used for messages.
Code
public function setUser($account) {
$this->uid = is_object($account) ? $account->uid : $account;
}