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

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
2016-10-29 09:21:05
Comments
Leave a Comment

Please login to continue.