You are here

public static function Messaging_User_Destination::format_address in Messaging 7

Format address

Overrides Messaging_Destination::format_address

File

./messaging.destination.inc, line 473
Drupal Messaging Framework - Default class file

Class

Messaging_User_Destination
Destination is a system user

Code

public static function format_address($user, $format = MESSAGING_FORMAT_PLAIN, $type = NULL) {
  return $format & MESSAGING_FORMAT_HTML ? theme('username', array(
    'account' => $user,
  )) : check_plain($user->name);
}