Closed (fixed)
Project:
Drupal core
Version:
4.6.0
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 May 2005 at 15:18 UTC
Updated:
6 Jun 2005 at 21:58 UTC
Since the function currently only receives a string of HTML there is no way to add inormation to a user list.
You cannot do a user_load to add additional information, like the avatar.
Pattern matching the UID from the url in the html is not an option, since a username could be aliassed, thus in order to get the UID you need a lot of quite heavy code.
This patch changes the passed argument into an array of user objects. By default the objects need only to contain the name and UID.
This patch also cleans up the online user list block, which had some inconsistent code.
After his patch you can have fancy users lists like on my development ste: http://84.244.1.246
| Comment | File | Size | Author |
|---|---|---|---|
| user_module_theme_list.patch | 1.88 KB | Bèr Kessels |
Comments
Comment #1
Bèr Kessels commentedforgot status patch
Comment #2
factoryjoe commentedI will +1 if this simply means that the user array is passed on for theming, which I think it does. In which case, this is consistent w/ nodes and comments, so I think it's good.
Comment #3
adrinux commented+1 Looks good to me
Comment #4
dries commentedCommitted to HEAD. Thanks.
Comment #5
(not verified) commented