function webform_localization_webform_csv_data_alter in Webform Localization 7.4
Implements hook_webform_csv_data_alter().
File
- ./
webform_localization.module, line 487 - Webform localization module.
Code
function webform_localization_webform_csv_data_alter(&$data, $component, $submission) {
// Gets webform localization options that match this node ID.
$wl_options = webform_localization_get_config($component['nid']);
// Translate the translatable properties.
if ($wl_options['expose_strings']) {
$result = webform_localization_component_invoke($component['type'], 'csv_data', $data, $component, $submission);
if (!empty($result)) {
$data = $result;
}
}
}