You are here

function download_count_update_8001 in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/download_count/download_count.install \download_count_update_8001()
  2. 8.2 modules/custom/download_count/download_count.install \download_count_update_8001()
  3. 8.3 modules/custom/download_count/download_count.install \download_count_update_8001()
  4. 8.4 modules/custom/download_count/download_count.install \download_count_update_8001()
  5. 8.5 modules/custom/download_count/download_count.install \download_count_update_8001()
  6. 8.6 modules/custom/download_count/download_count.install \download_count_update_8001()
  7. 8.7 modules/custom/download_count/download_count.install \download_count_update_8001()
  8. 8.8 modules/custom/download_count/download_count.install \download_count_update_8001()
  9. 10.3.x modules/custom/download_count/download_count.install \download_count_update_8001()
  10. 10.0.x modules/custom/download_count/download_count.install \download_count_update_8001()
  11. 10.1.x modules/custom/download_count/download_count.install \download_count_update_8001()
  12. 10.2.x modules/custom/download_count/download_count.install \download_count_update_8001()

Increase download count flood window from 2 to 5 seconds.

File

modules/custom/download_count/download_count.install, line 125
Installation code for the download_count module.

Code

function download_count_update_8001(&$sandbox) {
  $config = \Drupal::service('config.factory')
    ->getEditable('download_count.settings');
  $config
    ->set('download_count_flood_window', 5);
  $config
    ->save();
}