You are here

auto_username.install in Automatic User Names 8

Same filename and directory in other branches
  1. 7 auto_username.install

Install, update and uninstall functions for the auto_username module.

File

auto_username.install
View 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

Namesort descending Description
auto_username_uninstall Implements hook_uninstall().