I am using a hook form alter to override the registration process. I want to assign a custom role that i have defined to the new user. How do i get about doing that?
I see that there is a users_roles table. Would simply making an entry in it with the user id and role id do the trick?
Thanks