You are here

function l10n_update_language_table in Localization update 7.2

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.

1 string reference to 'l10n_update_language_table'
l10n_update_status_form in ./l10n_update.admin.inc
Page callback: Translation status page.

File

./l10n_update.admin.inc, line 406
Admin settings and update page.

Code

function l10n_update_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;
}