You are here

function ldap_user_update_8304 in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_user/ldap_user.install \ldap_user_update_8304()

Removes the ldap_user_conf prefix.

File

ldap_user/ldap_user.install, line 109
Install, update and uninstall functions for the LDAP User module.

Code

function ldap_user_update_8304() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_user.settings');
  $data = $config
    ->get('ldap_user_conf');
  if ($data) {
    $config
      ->clear('ldap_user_conf');
    $config
      ->setData($data);
    $config
      ->save(TRUE);
  }
}