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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | rule_remove_role.jpg | 159.02 KB | giorgio79 |
Comments
Comment #1
giorgio79 commentedPerhaps a php field accepting a list of roles to expire would be great too :)
Comment #2
stewsnoozeDo 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?
Comment #3
giorgio79 commentedNope. :)
When adding a Rules action inside a trigger for expire role. There is only a single select field.
Comment #4
stewsnoozeIs 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?
Comment #5
giorgio79 commentedSure, 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.
Comment #6
giorgio79 commentedHmm, 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.
Comment #7
sharplesa commentedGood 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.
Comment #8
rcodinaDrupal 6 version is unsupported!