Retrieve $user
glennnz - October 16, 2009 - 22:27
| Project: | Views Custom Field |
| Version: | 6.x-1.0 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi
I need to retrieve the $user object; the current user isn't available from the $data abject.
My need is to create an edit link beside a list of nodes that only appears if the node author is the same as the current user.
Thanks
Glenn

#1
#2
<?phpglobal $user;
print $user->uid;
?>