You are here

function Messaging_Message::set_sender in Messaging 6.4

Same name and namespace in other branches
  1. 6.3 classes/messaging_message.class.inc \Messaging_Message::set_sender()

Set sender account and related properties

Parameters

$account: Sender user account

$address: Opational method's address for this account

File

includes/messaging_message.class.inc, line 406
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function set_sender($account, $address = NULL) {
  $this->sender = $account->uid;
  $this->sender_name = $account->name;
  $this->_sender = $account;
  if (isset($address)) {
    $this->sender_address = $address;
  }
}