By freatida on
this seems like it should be simple, but I've done the searches and can't find anything.
I want to assign different roles to users based on which value they've selected for a profile field.
Autoassignrole just blanket assigns roles, other modules let users chose their role. I just want something like autoassignrole but conditional on the value of a profile field.
Any help is appreciated. Thanks.
Comments
Custom Module
Hi I wanted to do the same exact thing and assumed I would find something for download in modules but that did not appear to be the case and I looked at all the ones you mention. We ended up writing a custom module. As the site and module are still in development, can you send me a pm and I can give you some code examples.
In our case if the user fills in 3 additional profile fields on registration they are automatically elevated to a role with more permissions. You may need to expand upon our code but the basic premise is there.
Danny Englander | Twitter | Instagram
_
You should be able to do this with the http://drupal.org/project/rules module.