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.
Hi there
For a site I wanted to use the role name as an argument instead of the rid.
I fixed it for my site, my simple solution can be reviewed here: http://drupal.org/node/904208
It might be interesting to add this to the default behavior?
Grtzz
Comments
Comment #1
dawehnerAlternative to http://drupal.org/node/904208#comment-3423460 you could use a php argument validator which translates the role name to the RID of the role. This is all you need. One advantage of the rid is that it's faster to query.
Perhaps someone will write the patch for data definition.
Comment #2
coendou CreditAttribution: coendou commentedThanks, I will take a look at that.
I understand that the rid is a faster query, but speed isn't really a big issue on my site.
Anyways digging in the code was a good exercise for me ;)
Comment #3
dawehnerPlease create a patch. It does look fine what you posted in the forum.
Comment #4
iamjon CreditAttribution: iamjon commentedI'm marking this as postponed from lack of activity.
coendou if you need some help with the patch please let us know.
Comment #5
iamjon CreditAttribution: iamjon commentedAssigning to myself to write a patch based on the forum post in user_views_data function.
Comment #6
iamjon CreditAttribution: iamjon commentedComment #7
MustangGB CreditAttribution: MustangGB commented