Drupal login page, while going from url
?q=user
shows you login form and it also shows Change password
and Create new account
tabs .
I want to remove the Create new account
option/tab from there and also I do not want user to access registration page even via url
: ?q=user/register
.
Anyone?
To hide the Create new account
tab in the /user
path, you can insert the following in your module code:
function modulename_menu_alter(&$item) {
// Hide the "Create new account" tab
$item['user/register']['type'] = MENU_CALLBACK;
}
This hides the tab but still allows for /user/register
to be accessed.