function entity_translation_field_attach_submit in Entity Translation 7
Implementation of hook_field_attach_submit().
Mark translations as outdated if the submitted value is true.
File
- ./
entity_translation.module, line 1612
Code
function entity_translation_field_attach_submit($entity_type, $entity, $form, &$form_state) {
if (($handler = entity_translation_entity_form_get_handler($form, $form_state)) && entity_translation_enabled($entity_type, $entity)) {
// Update the wrapped entity with the submitted values.
$handler
->setEntity($entity);
$handler
->entityFormSubmit($form, $form_state);
// Process in-place translations for the taxonomy autocomplete widget.
entity_translation_taxonomy_term_field_attach_submit($entity_type, $entity, $form, $form_state);
}
}