1.20.x system.install system_update_1016()

Moves action_max_stack from variable to config.

Related topics

File

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

Code

function system_update_1016() {
  // Migrate variables to config.
  $config = config('system.core');
  $config->set('action_recursion_limit', update_variable_get('actions_max_stack', 35));
  $config->save();

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