1 translation.install translation_update_1000()

Convert translation settings to config.

Related topics

File

core/modules/translation/translation.install, line 26
Install, update and uninstall functions for the Translation module.

Code

function translation_update_1000() {
  // Create the new config file.
  $config = config('translation.settings');
  $config->set('language_type', update_variable_get('translation_language_type', 'language'));
  $config->save();

  update_variable_del('translation_language_type');
}