In one of my requirement I had two registration for two users. User had two roles. We have to build seperate form for two user registration.
By registrating from the specific url user will automatically get the respective role.
Now to give the seperate registration link for user we have to alter registration form using hook_form_alter() function.
Here is the code snippet how to achieve it.
In any case if we want to add some more links to user