You are here

function theme_activity_username in Activity 6

Same name and namespace in other branches
  1. 5.4 activity.module \theme_activity_username()
  2. 5.3 activity.module \theme_activity_username()
  3. 6.2 activity.module \theme_activity_username()
  4. 7 activity.module \theme_activity_username()

Theme function to return username.

6 theme calls to theme_activity_username()
activity_token_values in ./activity.module
Token module integration. Defines available default token values.
commentactivity_token_values in contrib/commentactivity/commentactivity.module
Token module integration. Defines available default token values.
flagactivity_token_values in contrib/flagactivity/flagactivity.module
Token module integration. Defines available default token values.
theme_activity_comments in ./activity.module
Theme function to process activity comments on activity records.
useractivity_token_values in contrib/useractivity/useractivity.module
Token module integration. Defines available default token values.

... See full list

File

./activity.module, line 1324
activity.module

Code

function theme_activity_username($account, $self = FALSE) {
  global $user;
  return $self && $user->uid == $account->uid ? t('you') : theme('username', $account);
}