Show links depending on role's name I want to show a custom link for each role on my site. To do so, I will put PHP code in my page.tpl.php. I want to add an if statement that checks if the current user's role is equal to something, then print the link. 

How can I get the current user role?
global $user;
if($user-&gt;roles[1] || $user-&gt;roles[2]){
//Do Something
}