Issue #2905444: Disable user registration by default

This commit is contained in:
Michael Stenta 2017-09-04 14:57:15 -04:00
parent 95ed5b2dfc
commit 4b45895034
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@
*/
function farm_install() {
// Only admins can create new accounts.
variable_set('user_register', USER_REGISTER_ADMINISTRATORS_ONLY);
// Enable farm theme and set as default.
theme_enable(array('farm_theme'));
variable_set('theme_default', 'farm_theme');