function encrypt_update_7201 in Encrypt 7.2
Same name and namespace in other branches
- 7.3 encrypt.install \encrypt_update_7201()
Provide a nice upgrade for 1.x users by copying their key path.
File
- ./
encrypt.install, line 210 - Install, update and uninstall functions for the encrypt module.
Code
function encrypt_update_7201() {
if ($key_path = variable_get('encrypt_secure_key_path', NULL)) {
variable_set('encrypt_key_provider', 'file');
variable_set('encrypt_key_providers_file_settings', array(
'path' => $key_path,
'method' => 'file_contents',
));
variable_del('encrypt_secure_key_path');
}
}