You are here

function aes_uninstall in AES encryption 6

Same name and namespace in other branches
  1. 8.2 aes.install \aes_uninstall()
  2. 5 aes.install \aes_uninstall()
  3. 7 aes.install \aes_uninstall()

File

./aes.install, line 105

Code

function aes_uninstall() {

  //delete keyfile
  if (variable_get("aes_key_storage_method", "") == "File") {
    unlink(variable_get("aes_key_path", ""));
  }
  drupal_uninstall_schema("aes");

  //delete variables
  variable_del("aes_key");
  variable_del("aes_convert");
  variable_del("aes_key_storage_method");
  variable_del("aes_key_path");
  variable_del("aes_key");
  variable_del("aes_encryption_iv");
  variable_del("aes_cipher");
  variable_del("aes_viewing_method");
  variable_del("aes_implementation");
  drupal_set_message(t("AES uninstalled."));
}