You are here

function fb_format_username in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb.module \fb_format_username()

This function will be replaced, hopefully, by format_username in D7.

See also

http://drupal.org/node/192056

File

./fb.module, line 1559
This is the core required module of Drupal for Facebook.

Code

function fb_format_username($account) {
  $name = !empty($account->name) ? $account->name : variable_get('anonymous', t('Anonymous'));
  drupal_alter('username', $name, $account);
  return $name;
}