Change record status: 
Introduced in branch: 
7.x-1.x
Introduced in version: 
7.x-1.0-alpha3
Description: 

To simplify implementations and preventing language selection bugs, the arguments to the mentioned hook have been changed().

Before:

function hook_tmgmt_source_translation_structure($field_name, $entity_type, $entity, $field_instance) {
}

New:

function hook_tmgmt_source_translation_structure($entity_type, $entity, $field, $instance, $langcode, $items) {
}

This means that most implementations can just use $items<code> to extract the values instead of having to load them from the <code>$entity as visible in the following diff from the text implementation:


-function text_tmgmt_source_translation_structure($field_name, $entity_type, $entity, $field_instance) {
-  $field_lang = field_language($entity_type, $entity, $field_name);
+function text_tmgmt_source_translation_structure($entity_type, $entity, $field, $instance, $langcode, $items) {
   $structure = array();
-  if (!empty($entity->{$field_name}[$field_lang])) {
-    $field_info = field_info_field($field_name);
-    $structure['#label'] = check_plain($field_instance['label']);
-    foreach ($entity->{$field_name}[$field_lang] as $delta => $value) {
+  if (!empty($items)) {
+    $structure['#label'] = check_plain($instance['label']);
+    foreach ($items as $delta => $value) {
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done