Hi, can anyone tell me the function to call the user role? I would like to add the user's role under the username in the node. I have reporters, editors, and photographers as user roles on my site.

Thanks!

Check out View Online!

Comments

ax’s picture

global $user;
print $user->role;

too easy, isn't it ;)

theview’s picture

Thanks!