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?
Configuring Content Moderation To enable the module, go to Extend -> Content Moderation module and Click on Install. Here, you can see a default workflow called “Editorial” that gets created when you enable the module. You can edit the existing “Editorial” workflow or create a new workflow by clicking on Add Workflow.
User Management manages the information of the user, which allows creating or deleting the user, changing passwords, time and roles.
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.
Open the Configuration
admin menu, and under the People
heading click Account Settings
. Under the heading Who can register accounts?
select Administrators only
and then save the settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With