Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2012 at 09:30 UTC
Updated:
26 Oct 2015 at 10:05 UTC
Jump to comment: Most recent
Comments
Comment #1
kunalkursija commentedHi pavimal,
Instead of using
global $user; print $user;You will have to do something like thisNote:
By default the global user object will contain the basic information of user's login. For ex: login time, session info e.t.c.
However if you want to access complete user object information, Then you will have to load the complete user object. This will also fetch all the fields and respective data.
Comment #2
cilefen commented#1 sounds correct to me.
Comment #3
kunalkursija commented