function auditfiles_update_8003 in Audit Files 8.3
Reset config parameter for date format to "long".
File
- ./
auditfiles.install, line 45 - This file is used to write install Uninstall hooks that used in the module.
Code
function auditfiles_update_8003() {
$config = \Drupal::service('config.factory')
->getEditable('auditfiles.settings');
$value = $config
->get('auditfiles_report_options_date_format');
if ($value == '') {
$config
->set('auditfiles_report_options_date_format', 'long')
->save();
}
}