Add user roles as a viewable field within views
marcingy - May 20, 2008 - 20:09
| Project: | Usernode |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Currently the roles a user belong to can be used as a filter but can't be displayed this adds this ability to usernode.
| Attachment | Size |
|---|---|
| usernode_roles.patch | 1.63 KB |

#1
#2
I did a manual patch on the latest 5.x dev and it works!
#3
This works with 5.x-dev but I had to uninstall usernode 5.x-1.4 first. It would be great if this could be ported.
#4
There is a small code style issue, there should be spaces around "=>". Then theme_user_roles() does violate the namespace of the module. Isn't there a core function that we could reuse here anyway?