function apachesolr_search_language_name in Apache Solr Search 5.2
Same name and namespace in other branches
- 6 apachesolr_search.module \apachesolr_search_language_name()
- 6.2 apachesolr_search.module \apachesolr_search_language_name()
1 call to apachesolr_search_language_name()
1 string reference to 'apachesolr_search_language_name'
- apachesolr_search_block in ./
apachesolr_search.module - Implementation of hook_block().
File
- ./
apachesolr_search.module, line 703 - 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;
}