You are here

function title_field_text_sync_set in Title 7

Sync back callback for the text field type.

File

./title.core.inc, line 165
Provide field replacement information.

Code

function title_field_text_sync_set($entity_type, $entity, $legacy_field, $info, $langcode) {
  $entity->{$info['field']['field_name']}[$langcode][0]['value'] = $entity->{$legacy_field};
}