Block for quick backswitches use user_load in cycle just tot get uid and name.
It's bad practice and have bad perfomance impact.

I propose use single SQL query to fetch this data at once.

#1 user-load-in-cycle-1214410-1.patch1.88 KBIRuslan
Members fund testing for the Drupal project. Drupal Association Learn more


IRuslan’s picture

NigelCunningham’s picture

While working on another module, I noticed that Masquerade does this a lot. Is there a reason? If not, I'll happily provide a patch to do this module-wide (or as much as possible).

andypost’s picture

This is a really annoying but required to allow modules a-la realname to work - override a username

andypost’s picture

Status: Active » Needs review

Suppose we needs more reviews