1.20.x system.install | system_update_1026() |
Convert file system, clean URL, profile, and theme variables to config.
Related topics
File
- modules/
system/ system.install, line 2465 - Install, update and uninstall functions for the system module.
Code
function system_update_1026() {
$config = config('system.core');
$config->set('file_default_scheme', update_variable_get('file_default_scheme', 'public'));
$config->set('file_public_path', update_variable_get('file_public_path', 'files'));
$config->set('file_temporary_path', update_variable_get('file_temporary_path', ''));
$config->set('file_private_path', update_variable_get('file_private_path', ''));
$config->set('image_jpeg_quality', update_variable_get('image_jpeg_quality', 75));
$config->set('install_profile', update_variable_get('install_profile', 'standard'));
$config->set('clean_url', update_variable_get('clean_url', 0));
$config->set('theme_default', update_variable_get('theme_default', 'stark'));
$config->set('admin_theme', update_variable_get('admin_theme', ''));
$config->set('node_admin_theme', update_variable_get('node_admin_theme', ''));
$config->save();
// Delete variables.
update_variable_del('file_default_scheme');
update_variable_del('file_public_path');
update_variable_del('file_temporary_path');
update_variable_del('file_private_path');
update_variable_del('install_profile');
update_variable_del('clean_url');
update_variable_del('theme_default');
update_variable_del('admin_theme');
update_variable_del('node_admin_theme');
update_variable_del('image_jpeg_quality');
// These variables have been converted to settings:
update_variable_del('css_gzip_compression');
update_variable_del('js_gzip_compression');
// And these variables have been converted to state:
update_variable_del('javascript_parsed');
}