locale_translation_language_table($form_element)
Form element callback: After build changes to the language update table.
Adds labels to the languages and removes checkboxes from languages from which translation files could not be found.
function locale_translation_language_table($form_element) { // Remove checkboxes of languages without updates. if ($form_element['#not_found']) { foreach ($form_element['#not_found'] as $langcode) { $form_element[$langcode] = array(); } } return $form_element; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/locale_translation_language_table/8.1.x