1 node.install | node_update_1007() |
Convert variables to configuration.
Related topics
File
- core/
modules/ node/ node.install, line 509 - Install, update and uninstall functions for the node module.
Code
function node_update_1007() {
$config = config('search.settings');
$config->set('node_rank_comments', update_variable_get('node_rank_comments', 0));
$config->set('node_rank_relevance', update_variable_get('node_rank_relevance', 0));
$config->set('node_rank_sticky', update_variable_get('node_rank_sticky', 0));
$config->set('node_rank_promote', update_variable_get('node_rank_promote', 0));
$config->save();
update_variable_del('node_rank_comments');
update_variable_del('node_rank_relevance');
update_variable_del('node_rank_sticky');
update_variable_del('node_rank_promote');
}