function aes_delete_key in AES encryption 6
Same name and namespace in other branches
- 5 aes.module \aes_delete_key()
- 7 aes.module \aes_delete_key()
1 call to aes_delete_key()
File
- ./
aes.module, line 491
Code
function aes_delete_key($storage_method) {
if ($storage_method == "Database") {
variable_del("aes_key");
}
if ($storage_method == "File") {
$result = unlink(variable_get("aes_key_path", ""));
if ($result === false) {
drupal_set_message(t("Couldn't delete keyfile!"), "error");
}
}
}