You are here

genpass.install in Generate Password 8

Same filename and directory in other branches
  1. 6 genpass.install
  2. 7.2 genpass.install
  3. 7 genpass.install

Updates for the genpass module.

File

genpass.install
View source
<?php

/**
 * @file
 * Updates for the genpass module.
 */

/**
 * Remove configuration option "genpass_entropy".
 */
function genpass_update_8001(&$sandbox) {

  // Get editable configuration settings for module.
  $config_factory = \Drupal::configFactory();
  $genpass_configuration = $config_factory
    ->getEditable('genpass.settings');

  // Remove genpass_entropy setting. Altering entropy source is now by hook.
  $genpass_configuration
    ->clear('genpass_entropy');
  $genpass_configuration
    ->save(TRUE);
}

Functions

Namesort descending Description
genpass_update_8001 Remove configuration option "genpass_entropy".