Closed (fixed)
Project:
Account menu
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2009 at 12:43 UTC
Updated:
14 Jun 2014 at 14:10 UTC
Jump to comment: Most recent
just a quick fix , "Create account" should be taken off when the account creation is disabled in the user settings.
Comments
Comment #1
mattyoung commented>when the account creation is disabled in the user settings.
Is there some variable_get() or something else to find out the status of this?
Comment #2
Anonymous (not verified) commentedAny luck finding this? I've searched for a while now for this with no luck.
Comment #3
mattyoung commentedI still don't know how to find out this setting...
Comment #4
Aveu commentedMatt,
I am looking into this for my needs too but the answer to your puzzle is...
The setting you are looking for can be accessed using the following function:
variable_get('user_register', 0)
which will return a value of 0-2 as follows:
// 0 is for Only the Site-Admin can create new accounts
// 1 is for Anyone can create new accounts without approval
// 2 is for Anyone can create new accounts but approval is required
If I can't get to fixing the issue I hope this information helps.
PS: To give credit where due... this info was provided in an IRC chat with users chx, lyricnz, dereine, and OSInet.
Comment #5
mattyoung commentedSo there is no value for "account creation disable"? Then how do we get to set "No account creation?"
Comment #6
verta commentedThe user/login page respects this setting, where ever it may be, and does not display the Create Account parts of the form when admin,users,user settings has Public Registrations set to the first option, " Only site administrators can create new user accounts."
I support this request, it makes sense to not show on the menu option that an unregistered user might create an account when the site will not permit this.
However, I think it may be a core issue. Doesn't adding the user/login link to any menu adds the "Log in/Create an account" option to the menu for unauthenticated users?
Comment #7
mattyoung commentedAny update to this issue?
From Mt. Emei, China
Comment #8
john franklin commentedChanged the wording of the login link to better reflect the page it references. The create account and password reset pages have separate paths.