function Messaging_Message::get_sender_name in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.message.inc \Messaging_Message::get_sender_name()
Get sender name
File
- includes/
messaging_message.class.inc, line 615 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
function get_sender_name() {
if (!empty($this->sender_name)) {
return $this->sender_name;
}
elseif ($sender = $this
->get_sender()) {
return check_plain($sender->name);
}
else {
return variable_get('site_name', 'Drupal');
}
}