Strong Like Bull
Strong Like Bull

Reputation: 11317

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 alter.

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 ?

Upvotes: 0

Views: 221

Answers (1)

marcvangend
marcvangend

Reputation: 5642

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.

Upvotes: 1

Related Questions