You are here

function encrypt_update_7201 in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 encrypt.install \encrypt_update_7201()

Provide a nice upgrade for 1.x users by copying their key path.

File

./encrypt.install, line 202
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');
  }
}