function encryption_settings_form_submit
Search API
7.x encryption.module | encryption_settings_form_submit($form, $form_state) |
6.x encryption.module | encryption_settings_form_submit($form, $form_state) |
The submit handler
File
- modules/
encryption/ encryption.module, line 200 - This is the main module file for the encryption module.
Code
function encryption_settings_form_submit($form, $form_state) {
$encryption_key_path = trim($form_state ["values"]["encryption_key_path"]);
// We made it here, so its safe to save everything.
variable_set("encryption_key_path", $encryption_key_path);
fp_add_message(t("Your encryption settings have been saved. A reminder: if you change these settings after encrypting
files or values, those files will no longer be readable. Save your encryption key value (whether in a file
or in settings.php as a string) in a safe place."));
}