genpass.install in Generate Password 8
Same filename and directory in other branches
Updates for the genpass module.
File
genpass.installView 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
Name | Description |
---|---|
genpass_update_8001 | Remove configuration option "genpass_entropy". |