function webform_lingotek_config_object_translation_presave in Webform 8.5
Same name and namespace in other branches
- 6.x includes/webform.translation.inc \webform_lingotek_config_object_translation_presave()
Implements hook_lingotek_config_object_translation_presave().
File
- includes/
webform.translation.inc, line 383 - Webform module translation hooks.
Code
function webform_lingotek_config_object_translation_presave(array &$data, $config_name) {
if ($config_name !== 'webform.settings') {
return;
}
_webform_lingotek_decode_tokens($data);
$data['webform.settings']['test.types'] = Yaml::encode($data['webform.settings']['test.types']);
$data['webform.settings']['test.names'] = Yaml::encode($data['webform.settings']['test.names']);
}