开发者

Does the Auto Assign Role Module not work with Custom form registrations?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜