[heaviest-role] and [lightest-role] show id
lasac - July 29, 2009 - 15:34
| Project: | Role Weights |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
[heaviest-role] and [lightest-role] only show the id which the role has in the role_weights db instead of showing the role name

#1
Thanks for the report - can you try this piece of PHP code in a page on your site to see if it produces the same problem?
<?php
// Token support brief test
if (module_exists('token')) {
print 'Running Token tests.<br />';
global $user;
$string = 'I am [user] with lightest role [lightest-role-id]:[lightest-role]';
print token_replace($string, 'user', $user) . '<br />';
$string = 'I am [user] with heaviest role [heaviest-role-id]:[heaviest-role]';
print token_replace($string, 'user', $user) . '<br />';
}
?>
#2
Marked #533186: auto assign role and role weights as duplicate issue.
#3
i am not using the module anymore because of this issue, found a workaround for the same thing as i wanted without role weights.
Anyone still using the module who could try the php code?