locale_field_node_form_submit

Versions
7
locale_field_node_form_submit($form, &$form_state)

Form submit handler for node_form().

Check if Locale is registered as a translation handler and handle possible node language changes.

Code

modules/locale/locale.module, line 444

<?php
function locale_field_node_form_submit($form, &$form_state) {
  if (field_multilingual_check_translation_handlers('node', 'locale')) {
    module_load_include('inc', 'locale', 'locale.field');
    locale_field_node_form_update_field_language($form, $form_state);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.