You are here

function farm_install in farmOS 2.x

Same name and namespace in other branches
  1. 7 farm.install \farm_install()

Implements hook_install().

File

./farm.install, line 13
Install, update and uninstall functions for the farmOS installation profile.

Code

function farm_install() {

  // Use private file system by default.
  \Drupal::configFactory()
    ->getEditable('system.file')
    ->set('default_scheme', 'private')
    ->save();

  // Only allow admins to register new users.
  \Drupal::configFactory()
    ->getEditable('user.settings')
    ->set('register', 'admin_only')
    ->save();
}