function _webform_encrypt_decrypt_nested_values in Webform Encrypt 6
Helper function to recursively decrypt values in a webform structure.
1 call to _webform_encrypt_decrypt_nested_values()
- webform_encrypt_form_alter in ./
webform_encrypt.module - Implementation of hook_form_alter().
File
- ./
webform_encrypt.module, line 124 - Main module file for the Webform Encrypt module.
Code
function _webform_encrypt_decrypt_nested_values(&$element) {
foreach (element_children($element) as $name) {
$component =& $element[$name];
if (!empty($component['#webform_component']['extra']['encrypt'])) {
$component['#default_value'] = decrypt($component['#default_value'], array(
'base64' => TRUE,
));
}
_webform_encrypt_decrypt_nested_values($component);
}
}