function protected_submissions_update_8001 in Protected Submissions 8
Implements hook_update_N().
File
- ./
protected_submissions.install, line 38 - Installation functions for protected_submissions module.
Code
function protected_submissions_update_8001() {
if (\Drupal::config('protected_submissions.settings')
->get('protected_submissions.allowed_scripts') === NULL) {
\Drupal::configFactory()
->getEditable('protected_submissions.settings')
->set('protected_submissions.allowed_scripts', [
'Latin' => 'Latin',
])
->save();
}
if (\Drupal::config('protected_submissions.settings')
->get('protected_submissions.check_quantity') === NULL) {
\Drupal::configFactory()
->getEditable('protected_submissions.settings')
->set('protected_submissions.check_quantity', '50')
->save();
}
}