Drupal 7 v7.42

I am supporting a site originally built by another. I have a "vendor" role that is registered at /vendor/register and normal users register at user/register. I have two questions.

1) I cannot see where the /vendor/register page is defined and built. If I wanted to add a new field or modify what the user must enter to register where would I find it? It is already customized. I cannot find any reference to customized code in our themes directory.

2) This is related to #1. When a user is logged in as an authenticated user they get access denied on the /vendor/register page. I would like an authenticated user to be able to access the /vendor/register page but I assume the system already sees them with an existing account. The actual error they see is "You are not authorized to access this page. ".

Please help
thx

Comments

Jeff Burnz’s picture

1) It's going to be in a custom module, and 2) is just an access control, probably in the same module.

tavor999’s picture

Thanks for you response Jeff. I have parsed all of the code within the add-on modules directory and I cannot find any reference to this. Is it your expectation that a person who is already logged in as a normal authenticated user should be allowed to hit a second (/vendor/register) page without an error? It is worth noting that both the /user/register and /vendor/register are using the form id="user-register-form". Any other information you have would be great thanks!

Jeff Burnz’s picture

The hooks to declare menu items, callbacks etc for the page have to be in a module, so whatever way it's being done the code has to be there somewhere, it's not working by magic :)

I can't say what the expectations for your site are, yes the same form can be used and altered in the form alter function.