You are here

function apachesolr_search_language_name in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \apachesolr_search_language_name()
  2. 6 apachesolr_search.module \apachesolr_search_language_name()
1 call to apachesolr_search_language_name()
theme_apachesolr_breadcrumb_language in ./apachesolr_search.module
1 string reference to 'apachesolr_search_language_name'
apachesolr_search_block in ./apachesolr_search.module
Implementation of hook_block().

File

./apachesolr_search.module, line 1093
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_language_name($lang) {
  static $list = NULL;
  if (!isset($list)) {
    if (function_exists('locale_language_list')) {
      $list = locale_language_list();
    }
    $list['und'] = t('Language neutral');
  }
  return $lang && isset($list[$lang]) ? $list[$lang] : $lang;
}