function download_count_update_8001 in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.3 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.4 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.5 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.6 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.7 modules/custom/download_count/download_count.install \download_count_update_8001()
- 8.8 modules/custom/download_count/download_count.install \download_count_update_8001()
- 10.3.x modules/custom/download_count/download_count.install \download_count_update_8001()
- 10.0.x modules/custom/download_count/download_count.install \download_count_update_8001()
- 10.1.x modules/custom/download_count/download_count.install \download_count_update_8001()
- 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();
}