I'd like to show real username instead of $user->name. How would I do that?

Comments

hkirsman’s picture

Found out myself. Just use user_load() function

global $user;
$my_user = user_load($user->uid);
dpm($my_user);
hass’s picture

Status: Active » Fixed

Always use format_username(), please.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.