1 simpletest.install | simpletest_update_1001() |
Move simpletest settings from variables to config.
Related topics
File
- core/
modules/ simpletest/ simpletest.install, line 224 - Install, update and uninstall functions for the simpletest module.
Code
function simpletest_update_1001() {
// Migrate variables to config.
$config = config('simpletest.settings');
$config->set('simpletest_clear_results', update_variable_get('simpletest_clear_results', 1));
$config->set('simpletest_method', update_variable_get('simpletest_httpauth_method', 1));
$config->set('simpletest_password', update_variable_get('simpletest_httpauth_password', ''));
$config->set('simpletest_username', update_variable_get('simpletest_httpauth_username', ''));
$config->set('simpletest_verbose', update_variable_get('simpletest_verbose', 1));
$config->save();
// Delete variables.
update_variable_del('simpletest_clear_results');
update_variable_del('simpletest_httpauth_method');
update_variable_del('simpletest_httpauth_password');
update_variable_del('simpletest_httpauth_username');
update_variable_del('simpletest_verbose');
}