I have a custom user registration form at: somepath/register using hook form alte开发者_如何学Gor.
I set up auto assign role by path to "/somepath/register" and it does not seem to assign the role that I am wanting.
Does Auto Assign only work with content profile and not hook form alter registration ?
I guess that depends on how you altered your form to incorporate a user register form. Do you insert values directly into the database, or do you call user_save()?
It may also depend on the url of your form, because I see in autoassignrole.module that there is a check for arg(0) == 'admin'
somewhere which might prevent the auto assign process from being executed.
精彩评论