function lockr_field_encrypt_disable in Lockr 7.3
Same name and namespace in other branches
- 7.2 modules/lockr_field_encrypt/lockr_field_encrypt.install \lockr_field_encrypt_disable()
Implements hook_disable().
File
- modules/
lockr_field_encrypt/ lockr_field_encrypt.install, line 24
Code
function lockr_field_encrypt_disable() {
// Clear the cache of existing data.
cache_clear_all('*', 'cache_field', TRUE);
// Set the old cache class if there was one.
$old_cache = variable_get('lockr_field_encrypt_old_cache', NULL);
if ($old_cache === NULL) {
variable_del('cache_class_cache_field');
}
else {
variable_set('cache_class_cache_field', $old_cache);
}
// Delete the variable that held the old cache class.
variable_del('lockr_field_encrypt_old_cache');
}