Hi,
I am curently working on a website for my company that was created by another developer.
Users can subscribe to open a blog on our website but the register interface is hidden behind a link like http://www.website.com/user/ae32hfzioef344ojpfjoiejfz because the company wanted only users aware of the link to be able to register an account. (there is no link "register" on the website)
I already spent 3 days looking in every possible file or every possible admin interface to understand how the previous developer did this. but couldn't find anything so far. Do you have any suggestions on where I should look or what would be the steps you would follow yourself to do such things? (There doesn't seem to be any aliases or URL redirect linking to this page)
Thanks for any help!
Eric
Comments
Hi, The url user/% will
Hi,
The url user/% will normally give the user main page.
But normally the argument is the user uid.
Could it be replaced by a views page, overriding the base url or a module routing (hook_menu) ?
Have a look on those points.
Senior developer & consultant
Drupal developer / module builder for more thant 5 years
Hi dco, I found the module
Hi dco,
I found the module that indeed hook the menu, remove the "Register" entry, and change the URL of the register page.
Here is the interesting part of the code:
<?phpfunction orcmisc_menu_alter(&$items) {
if (variable_get('orcmisc_register_url_enabled', 0)) {
if (variable_get('orcmisc_register_url_hide', 1) == 0) {
$items['user/register']['type'] = MENU_CALLBACK;
}
$items['user/' . variable_get('orcmisc_register_url', 'register')] = $items['user/register'];
//remove the default one
unset($items['user/register']);
}
}
?>
Just one question, why is it called_hook_menu if it actualy changes the URL to access some pages?
Thanks for your help!
Eric
I think this could be for
I think this could be for hooking (the wrong way ;-) the registration process...
Senior developer & consultant
Drupal developer / module builder for more thant 5 years