1 system.install system_update_1028()

Convert filter fallback and user cancellation method variables to config.

Related topics

File

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

Code

function system_update_1028() {
  $config = config('system.core');
  $config->set('filter_fallback_format', update_variable_get('filter_fallback_format', 'plain_text'));
  $config->set('user_cancel_method', update_variable_get('user_cancel_method', 'user_cancel_block'));
  $config->save();

  update_variable_del('filter_fallback_format');
  update_variable_del('user_cancel_method');
}