1 language.admin.inc language_admin_predefined_list()

Prepare a language code list for unused predefined languages.

File

core/modules/language/language.admin.inc, line 384
Admin page callbacks for the Language module.

Code

function language_admin_predefined_list() {
  include_once BACKDROP_ROOT . '/core/includes/standard.inc';
  $languages = language_list();
  $predefined = standard_language_list();
  foreach ($predefined as $key => $value) {
    if (isset($languages[$key])) {
      unset($predefined[$key]);
      continue;
    }
    $predefined[$key] = t($value[0]);
  }
  asort($predefined);
  return $predefined;
}