Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | user-load-in-cycle-1214410-1.patch | 1.88 KB | IRuslan |
Comments
Comment #1
IRuslan CreditAttribution: IRuslan commentedComment #2
Nigel CunninghamWhile 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).
Comment #3
andypostThis is a really annoying but required to allow modules a-la realname to work - override a username
Comment #4
andypostSuppose we needs more reviews
Comment #5
apadernoI am closing this bug report, as Drupal 6 is no longer supported. Please re-open it if the issue is still relevant for the Drupal 7 or 8 version of the module.