-1

I couldn't find a good reference to what the $user object consists of. I know $user->uid provides to uid. What else?

1 Answer 1

0

The Drupal 7 $user object consists of the following when doing an output of dsm($user):

If your wanted the name, you would do: $user->name or roles would be: $user->roles[2]

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.