function field_encrypt_form_system_performance_settings_alter in Field Encryption 7
Implements hook_form_FORM_ID_alter().
File
- ./
field_encrypt.module, line 24 - Core functions for the Field Encryption module.
Code
function field_encrypt_form_system_performance_settings_alter(&$form, &$form_state) {
if (module_exists('memcache')) {
$form['field_encrypt'] = array(
'#type' => 'fieldset',
'#title' => t('Field Encryption'),
);
$form['field_encrypt']['cache_class_cache_field'] = array(
'#title' => t('Cache backend'),
'#type' => 'select',
'#options' => array(
'FieldEncryptDatabaseCache' => t('Drupal database'),
'FieldEncryptMemCacheDrupal' => t('Memcache'),
),
'#default_value' => variable_get('cache_class_cache_field', 'FieldEncryptDatabaseCache'),
);
}
}