You are here

function webform_lingotek_config_object_document_upload in Webform 8.5

Same name and namespace in other branches
  1. 6.x includes/webform.translation.inc \webform_lingotek_config_object_document_upload()

Implements hook_lingotek_config_object_document_upload().

File

includes/webform.translation.inc, line 369
Webform module translation hooks.

Code

function webform_lingotek_config_object_document_upload(array &$data, $config_name) {
  if ($config_name !== 'webform.settings') {
    return;
  }
  $data['webform.settings']['test.types'] = Yaml::decode($data['webform.settings']['test.types']);
  $data['webform.settings']['test.names'] = Yaml::decode($data['webform.settings']['test.names']);
  _webform_lingotek_encode_tokens($data);
}