Set the installation profile to farm in farmOS's hook_install(). See #272

This commit is contained in:
Michael Stenta 2020-04-13 22:57:11 -04:00
parent 544542c04b
commit 867f3c063c
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ function farm_modules() {
*/
function farm_install() {
// Set the installation profile to farm.
// @see https://github.com/farmOS/farmOS/issues/272
variable_set('install_profile', 'farm');
// Only admins can create new accounts.
variable_set('user_register', USER_REGISTER_ADMINISTRATORS_ONLY);