current user's id with views
dagodev - June 30, 2009 - 07:40
| Project: | Views |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | dagodev |
| Status: | active |
Jump to:
Description
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

#1
year sure hook_views_tables is cached.
i think you should describe what you want to do