oidc-1.0.0-alpha2/oidc.install

oidc.install
<?php

/**
 * @file
 * Install, update and uninstall hooks.
 */

/**
 * Set the new "disable_user_routes" setting.
 */
function oidc_update_9101() {
  Drupal::service('config.factory')
    ->getEditable('oidc.general')
    ->set('disable_user_routes', TRUE)
    ->save();
}

/**
 * Rename the "oidc.general" config to "oidc.settings".
 */
function oidc_update_9200() {
  Drupal::service('config.factory')
    ->rename('oidc.general', 'oidc.settings');
}

/**
 * Set the new "show_session_expired_message" setting.
 */
function oidc_update_9201() {
  Drupal::service('config.factory')
    ->getEditable('oidc.settings')
    ->set('show_session_expired_message', TRUE)
    ->save();
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc