function featured_content_get_languages in Featured Content 7.2
Same name and namespace in other branches
- 6.2 featured_content.module \featured_content_get_languages()
- 6 featured_content.module \featured_content_get_languages()
- 7 featured_content.module \featured_content_get_languages()
Gets the enabled site languages.
3 calls to featured_content_get_languages()
- featured_content_block_configure in ./
featured_content.module - Implements hook_block_configure().
- featured_content_block_save in ./
featured_content.module - Implements hook_block_save().
- featured_content_get_filtered_nids in ./
featured_content.module - Get filtered node nids. Filter base on content types, users (authors) and taxonomy terms.
File
- ./
featured_content.module, line 1529 - Featured Content module for created related & featured content blocks.
Code
function featured_content_get_languages() {
static $languages = array();
if (empty($languages) && module_exists('locale')) {
foreach (locale_language_list() as $code => $language_name) {
$languages[$code] = check_plain($language_name);
}
natcasesort($languages);
$extra_languages = array(
'INTERFACE' => t('Use the language of the user interface.'),
'CURRENT' => t('Use the language of the page being shown.'),
);
$languages = $extra_languages + $languages;
}
return $languages;
}