You are here

function linkit_update_8503 in Linkit 8.5

Remove imce integration settings.

File

./linkit.install, line 188
Contains install and update functions for Linkit.

Code

function linkit_update_8503() {
  $config_factory = \Drupal::configFactory();
  foreach ($config_factory
    ->listAll('linkit.linkit_profile.') as $id) {
    $profile = $config_factory
      ->getEditable($id);
    $profile
      ->clear('third_party_settings.imce');
    $profile
      ->save(TRUE);
  }
}