function language_configuration_element_submit

Submit handler for the forms that have a language_configuration element.

4 string references to 'language_configuration_element_submit'
CustomBlockTypeFormController::form in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeFormController.php
Overrides \Drupal\Core\Entity\EntityFormController::form().
language_elements_configuration_element in drupal/core/modules/language/tests/language_elements_test/language_elements_test.module
A form containing a language configuration element.
node_type_form in drupal/core/modules/node/content_types.inc
Form constructor for the node type editing form.
VocabularyFormController::actions in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyFormController.php
Returns an array of supported actions for the current entity form.

File

drupal/core/modules/language/language.module, line 331
Add language handling functionality to Drupal.

Code

function language_configuration_element_submit(&$form, &$form_state) {

  // Iterate through all the language_configuration elements and save their
  // values.
  if (isset($form_state['language'])) {
    foreach ($form_state['language'] as $element_name => $values) {
      language_save_default_configuration($values['entity_type'], $values['bundle'], $form_state['values'][$element_name]);
    }
  }
}