function lingotek_update_9000 in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x lingotek.install \lingotek_update_9000()
- 3.2.x lingotek.install \lingotek_update_9000()
- 3.3.x lingotek.install \lingotek_update_9000()
- 3.4.x lingotek.install \lingotek_update_9000()
- 3.5.x lingotek.install \lingotek_update_9000()
- 3.6.x lingotek.install \lingotek_update_9000()
- 3.8.x lingotek.install \lingotek_update_9000()
Adds enable_download_interim preference to lingotek.settings.
File
- ./
lingotek.install, line 146 - Install, update and uninstall functions for the lingotek module.
Code
function lingotek_update_9000() {
// We converted this to a boolean.
$lingotekSettings = \Drupal::configFactory()
->getEditable('lingotek.settings');
$preference = $lingotekSettings
->get('preference.append_type_to_title', NULL);
if ($preference === 'global_setting') {
$lingotekSettings
->set('preference.append_type_to_title', TRUE);
$lingotekSettings
->save();
}
}