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

dawehner’s picture

Alternative 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.

coendou’s picture

Thanks, 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 ;)

dawehner’s picture

Please create a patch. It does look fine what you posted in the forum.

iamjon’s picture

Status: Active » Postponed

I'm marking this as postponed from lack of activity.
coendou if you need some help with the patch please let us know.

iamjon’s picture

Version: 6.x-2.11 » 6.x-3.x-dev
Assigned: Unassigned » iamjon
Category: feature » task

Assigning to myself to write a patch based on the forum post in user_views_data function.

iamjon’s picture

Status: Postponed » Active
MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)