function file_download_counter_update_8002 in File Download 8
Disable the Statistics module if the node module is not enabled.
File
- modules/
file_download_counter/ file_download_counter.install, line 78 - Install and update functions for the Statistics module.
Code
function file_download_counter_update_8002() {
// Set the new configuration setting for max age to the initial value.
\Drupal::configFactory()
->getEditable('file_download_counter.settings')
->set('display_max_age', 3600)
->save();
}