You are here

function lingotek_update_8221 in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x lingotek.install \lingotek_update_8221()
  2. 3.0.x lingotek.install \lingotek_update_8221()
  3. 3.1.x lingotek.install \lingotek_update_8221()
  4. 3.2.x lingotek.install \lingotek_update_8221()
  5. 3.3.x lingotek.install \lingotek_update_8221()
  6. 3.4.x lingotek.install \lingotek_update_8221()
  7. 3.5.x lingotek.install \lingotek_update_8221()
  8. 3.6.x lingotek.install \lingotek_update_8221()
  9. 3.7.x lingotek.install \lingotek_update_8221()
  10. 3.8.x lingotek.install \lingotek_update_8221()

Removes Lingotek Content Cloud unused settings.

File

./lingotek.install, line 998
Install, update and uninstall functions for the Lingotek module.

Code

function lingotek_update_8221() {
  $lingotekSettings = \Drupal::configFactory()
    ->getEditable('lingotek.settings');
  $lingotekSettings
    ->clear('preference.enable_content_cloud');
  $lingotekSettings
    ->clear('preference.content_cloud_import_format');
  $lingotekSettings
    ->clear('preference.content_cloud_import_status');
  $lingotekSettings
    ->save();
}