You are here

function encrypt_uninstall in Encrypt 7.3

Same name and namespace in other branches
  1. 6 encrypt.install \encrypt_uninstall()
  2. 7 encrypt.install \encrypt_uninstall()
  3. 7.2 encrypt.install \encrypt_uninstall()

Implements hook_uninstall().

Delete all of our variables from the variables table.

File

./encrypt.install, line 120
Install, update and uninstall functions for the encrypt module.

Code

function encrypt_uninstall() {
  variable_del('encrypt_default_config');

  // Delete any variables left over from older versions of Encrypt.
  variable_del('encrypt_encryption_method');
  $provider = variable_get('encrypt_key_provider', '');
  if ($provider) {
    variable_del('encrypt_key_providers_' . $provider . '_settings');
  }
  variable_del('encrypt_key_provider');
}