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

dawehner’s picture

year sure hook_views_tables is cached.

i think you should describe what you want to do

esmerel’s picture

Status: Active » Closed (fixed)

not enough info, Given the age of this issue, I have to hope it's either figured out, or no longer relevant.