Commit f20f6256 authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Setting the new cron generation setting to true in hook_update_n.

parent 0cc279d4
......@@ -120,3 +120,11 @@ function simplesitemap_update_8106() {
->query("alter table {simplesitemap} CHANGE `generated` sitemap_created int(11) NOT NULL");
}
/**
* Setting the new cron generation setting to TRUE by default.
*/
function simplesitemap_update_8107() {
\Drupal::service('config.factory')->getEditable('simplesitemap.settings')
->set('settings', array('cron_generate' => TRUE))->save();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment