Currently it is only possible to select a single role for the expiration.

Would be good to be able to select multiple roles.

If you take a look at the default Assign Role rule, there we have checkboxes for each role that are assigned for a user.

Would be great to have sg similar instead of a single select dropdown field.

CommentFileSizeAuthor
#5 rule_remove_role.jpg159.02 KBgiorgio79

Comments

giorgio79’s picture

Perhaps a php field accepting a list of roles to expire would be great too :)

stewsnooze’s picture

Status: Active » Postponed (maintainer needs more info)

Do you mean on the role admin page as you can already give expires to all the roles a user has on the /user//edit page?

giorgio79’s picture

Nope. :)

When adding a Rules action inside a trigger for expire role. There is only a single select field.

stewsnooze’s picture

Is the workaround for now that you would just edit them one at a time?

Have you got a screenshot of the page you are referring to?

giorgio79’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
StatusFileSize
new159.02 KB

Sure, here it is.

I solved it in the end with the Role Expire api call for each role, by using a custom php action instead.

I would call this a minor though given there is a workaround :)

Setting it to fixed.

giorgio79’s picture

Status: Closed (fixed) » Active

Hmm, maybe we should leave this open, as that php solution is quite hackish. Being able to select multiple roles via the rules interface would be great.

VBO "modify user roles" action has nice multiselect boxes that could be used.

sharplesa’s picture

Good report. It's a matter of replacing the single
widget with a list of role checkboxes. If someone's interested in getting started with Drupal module development, this would be a good starting point.

rcodina’s picture

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

Drupal 6 version is unsupported!