On this page
function 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 2178
- 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);
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.core.inc/function/install_write_profile/8.1.x