You are here

function hook_tmgmt_field_pre_populate_entity_alter in Translation Management Tool 7

Alter an entity object before populating its field with translations.

Parameters

array $data: Source field data.

object $entity: An entity object.

string $entity_type: The entity type.

string $langcode: The language of retrieved field values.

1 invocation of hook_tmgmt_field_pre_populate_entity_alter()
tmgmt_field_populate_entity in sources/field/tmgmt_field.module
Populates a field on an object with the provided field values.

File

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

Code

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