You are here

function install_write_profile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/install.core.inc \install_write_profile()

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 2185
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);
  }
}