auto_username.install in Automatic User Names 8
Same filename and directory in other branches
Install, update and uninstall functions for the auto_username module.
File
auto_username.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the auto_username module.
*/
/**
* Implements hook_uninstall().
*/
function auto_username_uninstall() {
// Delete all the aun variables and then clear the variable cache.
global $conf;
if (isset($conf)) {
foreach (array_keys($conf) as $key) {
// Find variables that have the module prefix.
if (strpos($key, 'aun_') === 0) {
Drupal::state()
->delete($key);
}
}
}
}
Functions
Name | Description |
---|---|
auto_username_uninstall | Implements hook_uninstall(). |