1 system.install system_update_1019()

Converts active_menus_default variable to config.

Related topics

File

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

Code

function system_update_1019() {
  // Migrate variables to config.
  $config = config('system.core');
  $config->set('active_menus_default', update_variable_get('menu_default_active_menus', array()));
  $config->save();

  // Delete variables.
  update_variable_del('menu_default_active_menus');
}