You are here

ldap_help.install in Lightweight Directory Access Protocol (LDAP) 8.3

LDAP Help Install File.

File

ldap_help/ldap_help.install
View source
<?php

/**
 * @file
 * LDAP Help Install File.
 */

/**
 * Implements hook_uninstall().
 */
function ldap_help_uninstall() {
  \Drupal::service('config.factory')
    ->getEditable('ldap_help')
    ->delete();
}

/**
 * Corrects a configuration field type.
 */
function ldap_help_update_8301() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_help.settings');
  $data = $config
    ->get('watchdog_detail');
  if ($data) {
    $config
      ->set('watchdog_detail', TRUE);
  }
  $config
    ->set('watchdog_detail', FALSE);
  $config
    ->save(TRUE);
}

Functions

Namesort descending Description
ldap_help_uninstall Implements hook_uninstall().
ldap_help_update_8301 Corrects a configuration field type.