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
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

glennnz - October 17, 2009 - 00:11
Title:Retriece $user» Retrieve $user

#2

bfr - November 17, 2009 - 15:44

<?php
global $user;
print
$user->uid;
?>

 
 

Drupal is a registered trademark of Dries Buytaert.