install_write_profile

install_write_profile($install_state)

Installation task; ensures install profile is written to settings.php.

Parameters

array $install_state: An array of information about the current installation state.

File

core/includes/install.core.inc, line 2180
API functions for installing Drupal.

Code

1
2
3
4
5
6
7
8
9
10
function install_write_profile($install_state) {
  if (Settings::get('install_profile') !== $install_state['parameters']['profile']) {
    // Remember the profile which was used.
    $settings['settings']['install_profile'] = (object) array(
      'value' => $install_state['parameters']['profile'],
      'required' => TRUE,
    );
    drupal_rewrite_settings($settings);
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.