function aes_uninstall in AES encryption 7
Same name and namespace in other branches
- 8.2 aes.install \aes_uninstall()
- 5 aes.install \aes_uninstall()
- 6 aes.install \aes_uninstall()
Implements hook_uninstall().
File
- ./
aes.install, line 114 - Install/uninstall related functions.
Code
function aes_uninstall() {
// Delete keyfile.
if (variable_get("aes_key_storage_method", "Database") == "File") {
unlink(variable_get("aes_key_path", ""));
}
// Delete variables.
variable_del("aes_key");
variable_del("aes_convert");
variable_del("aes_key_storage_method");
variable_del("aes_key_path");
variable_del("aes_encryption_iv");
variable_del("aes_cipher");
variable_del("aes_viewing_method");
variable_del("aes_implementation");
drupal_set_message(t("AES uninstalled."));
}