function aes_uninstall in AES encryption 5
Same name and namespace in other branches
- 8.2 aes.install \aes_uninstall()
- 6 aes.install \aes_uninstall()
- 7 aes.install \aes_uninstall()
File
- ./
aes.install, line 29
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");
drupal_set_message(t("AES uninstalled."));
}