I've added the ability to show the roles a user has on the user's profile page. Only roles specified by the admin will be shown.

This patch is for 4.6, but should also work for HEAD.

Comments

menesis’s picture

StatusFileSize
new1.04 KB

Your module didn't work at all... Please look at my patch, which shows roles in user's profile. Without any database queries.

junyor’s picture

StatusFileSize
new1.1 KB

Yeah, I totally attached the wrong thing. Here's what I meant to attach. The only real difference from your patch is the way the roles are themed.

junyor’s picture

Version: 4.6.x-1.x-dev » master
StatusFileSize
new976 bytes

Updated to HEAD for 4.7.

junyor’s picture

If you're using the patch in http://drupal.org/node/114466, you'll want to change the patch so the following line:

$data[] = array('value' => l($role, 'members/'.$rid));

reads:

$data[] = array('value' => l($role, 'members/roles/'.$rid));

wmostrey’s picture

Status: Needs review » Closed (fixed)

Fixed for 4.7 and 5.0

junyor’s picture

Status: Closed (fixed) » Active

Was this actually included? I can't find it in the code and I don't see anything in the CVS log indicating that it was.

junyor’s picture

Status: Active » Closed (won't fix)

Actually, I'm not sure this is appropriate for the members module anymore since it's become less focused on roles and more focused on different ways of listing users.