how can I know in Drupal if the role of the logged-in user ?
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.
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'.
thanks