title: How can I get user role from my custom module?
body: <p>how can I know in Drupal if the role of the logged-in user ?</p>
  
  <p>In the $user variable there is not role information.. I need to specify specific php code depending on the user role in my custom module.</p>
  
  <p>N.B. In $user there is a field 'role' but it always contains "authenticated user". What I need to know is the specific role (I've created in advance) of an authenticated user.. i.e. 'forum administrator', 'normal user'.</p>
  
  <p>thanks</p>