1 comment.install | comment_update_1002() |
Move comment variables to configuration files.
Related topics
File
- core/
modules/ comment/ comment.install, line 388 - Install, update and uninstall functions for the Comment module.
Code
function comment_update_1002() {
// These variables are environment-specific, so they use state instead of
// config files.
state_set('node_cron_comments_scale', update_variable_get('node_cron_comments_scale', 1.0));
update_variable_del('node_cron_comments_scale');
state_set('comment_maintain_node_statistics', update_variable_get('comment_maintain_node_statistics', TRUE));
update_variable_del('comment_maintain_node_statistics');
}