You are here

function hook_tmgmt_field_source_data_alter in Translation Management Tool 7

Alter source field data before being saved in a translation job.

Parameters

array $data: Source field data.

string $entity_type: The entity type.

object $entity: An entity object.

string $langcode: The language of retrieved field values.

1 invocation of hook_tmgmt_field_source_data_alter()
tmgmt_field_get_source_data in sources/field/tmgmt_field.module
Helper function for retrieving all translatable field values from an entity.

File

sources/field/tmgmt_field.api.php, line 20

Code

function hook_tmgmt_field_source_data_alter(&$data, $entity_type, $entity, $langcode) {
}