1.20.x system.install system_update_1030()

Convert mail system variable to config.

Related topics

File

modules/system/system.install, line 2538
Install, update and uninstall functions for the system module.

Code

function system_update_1030() {
  $config = config('system.mail');
  $config->setData(update_variable_get('mail_system', array('default-system' => 'DefaultMailSystem')));
  $config->save();
  update_variable_del('mail_system');
}