Hi,
Is there a way to get current logged in userid in a module?
Please suggest! Thanks, kul.
Yes.
This question has been asked and answered a thousand times:
http://drupal.org/search/apachesolr_search/module%20user%20id
ya, i had searched and found $user->uid;,but didn't know that i need to put "global $user;"in the module as well.
Thanks for suggesting!
Comments
Search
Yes.
This question has been asked and answered a thousand times:
http://drupal.org/search/apachesolr_search/module%20user%20id
ya, i had searched and found
ya, i had searched and found $user->uid;,but didn't know that i need to put "global $user;"in the module as well.
Thanks for suggesting!