function system_update_8038

Move site system regional settings from variable to config.

Related topics

File

drupal/core/modules/system/system.install, line 1806
Install, update and uninstall functions for the system module.

Code

function system_update_8038() {
  update_variables_to_config('system.date', array(
    'site_default_country' => 'country.default',
    'date_first_day' => 'first_day',
    'date_default_timezone' => 'timezone.default',
  ));
  update_variables_to_config('system.timezone', array(
    'date_default_timezone' => 'default',
    'configurable_timezones' => 'user.configurable',
    'empty_timezone_message' => 'user.warn',
    'user_default_timezone' => 'user.default',
  ));
}