function aes_delete_key in AES encryption 7
Same name and namespace in other branches
- 5 aes.module \aes_delete_key()
- 6 aes.module \aes_delete_key()
Deletes the encryption system key.
Parameters
string $storage_method: The storage method used to store the key. "Database" or "File".
1 call to aes_delete_key()
- aes_config_submit in ./
aes.admin.inc - Submits aes_config form.
File
- ./
aes.module, line 392 - Main file of the AES encryption module.
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");
}
}
}