You are here

function messaging_user_format_name in Messaging 7

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_user_format_name()

Callback for printing user names

File

./messaging.module, line 703

Code

function messaging_user_format_name($account, $format = MESSAGING_FORMAT_PLAIN) {
  $account = messaging_user_object($account);
  return $format & MESSAGING_FORMAT_HTML ? theme('username', array(
    'account' => $account,
  )) : check_plain($account->name);
}