[development] Convention for accessing global variables

Nancy Wichmann nan_wich at bellsouth.net
Thu Dec 10 03:52:02 UTC 2009


Andrew Berry wrote:
> I'm sure I'm not the only person who's done something like the
> following by mistake
> $user = user_load(...);

No, I'd guess at least half the developers on this list have done that.
That's why the guideline in core is to use $account for a user object. It
took me a few mistakes like that to realize the wisdom in it.

Nancy E. Wichmann, PMP  
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
Jr.



More information about the development mailing list