Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
30 Jun 2009 at 07:40 UTC
Updated:
13 Mar 2010 at 00:58 UTC
Hi everybody,
i'm trying to get the current user's id. This is my code:
global $user;
print $user->uid;
the problem is when i use it inside a hook views, I always get the id of the administrator, not the current user's id. Can anybody help me?
thanks
Comments
Comment #1
dawehneryear sure hook_views_tables is cached.
i think you should describe what you want to do
Comment #2
esmerel commentednot enough info, Given the age of this issue, I have to hope it's either figured out, or no longer relevant.