Skip to main content
removed "Drupal" from the title; removed tags from the title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

using $user Using user role information with user_hook_logouthook_user_logout()

I am new to drupal and php. I want to be able to give users a custom logout message based on their role. But, but on logout the $user$user variable is no longer avaliableavailable. What is the best way to do

How can I achieve this? I figured the key might be with $_SESSION, during login, but I am not sure extactlyexactly how to store user role in the session? Any suggestions?.

using $user role information with user_hook_logout

I am new to drupal and php. I want to be able to give users a custom logout message based on their role. But on logout the $user variable is no longer avaliable. What is the best way to do this? I figured the key might be with $_SESSION, during login, but I am not sure extactly how to store user role in session? Any suggestions?

Using user role information with hook_user_logout()

I want to give users a custom logout message based on their role, but on logout the $user variable is no longer available.

How can I achieve this? I figured the key might be with $_SESSION, during login, but I am not sure exactly how to store user role in the session.

Source Link

using $user role information with user_hook_logout

I am new to drupal and php. I want to be able to give users a custom logout message based on their role. But on logout the $user variable is no longer avaliable. What is the best way to do this? I figured the key might be with $_SESSION, during login, but I am not sure extactly how to store user role in session? Any suggestions?