You are here

function field_encrypt_modules_disabled in Field Encryption 7

Implements hook_modules_disabled().

File

./field_encrypt.module, line 46
Core functions for the Field Encryption module.

Code

function field_encrypt_modules_disabled($modules) {
  if (in_array('memcache', $modules) && variable_get('cache_class_cache_field', NULL) == 'FieldEncryptMemCacheDrupal') {

    // Clear the cache of existing data.
    cache_clear_all('*', 'cache_field', TRUE);

    // Set up the new class for this bin.
    variable_set('cache_class_cache_field', 'FieldEncryptDatabaseCache');
  }
}