I'm working with the location module and I want to get a link that will give directions from the user's home address to the address of a location (associated with a node). I can get the node location, but I don't know how to get any of the current user's info. I've looked through most of the Drupal API, past forum posts, etc, and found nothing. Any ideas? Thanks.

Comments

tmcw’s picture

note - it isn't in $GLOBALS["user"] either...

sami_k’s picture

I believe:

global $user;

Then use the user object... $user->dbfield

--
Read the handbook, search the forums, then ask!
http://drupal.etopian.net (Consulting, Development, and Hosting)