Version 1
[yaffs-website] / web / core / profiles / minimal / minimal.install
1 <?php
2
3 /**
4  * @file
5  * Install, update and uninstall functions for the minimal installation profile.
6  */
7
8 /**
9  * Implements hook_install().
10  *
11  * Performs actions to set up the site for this profile.
12  *
13  * @see system_install()
14  */
15 function minimal_install() {
16   // Disable the user pictures on nodes.
17   \Drupal::configFactory()->getEditable('system.theme.global')->set('features.node_user_picture', FALSE)->save(TRUE);
18
19   // Allow visitor account creation, but with administrative approval.
20   \Drupal::configFactory()->getEditable('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE);
21 }