function lingotek_get_active_languages in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lingotek.util.inc \lingotek_get_active_languages()
- 7.4 lingotek.util.inc \lingotek_get_active_languages()
Get the currently active languages for this Drupal installation.
File
- ./
lingotek.util.inc, line 610 - Utility functions.
Code
function lingotek_get_active_languages($get_details = FALSE) {
$active_languages = current(language_list('enabled'));
if ($get_details === FALSE) {
$active_languages = array_keys($active_languages);
}
/*
Get_Details -> FALSE
array (
0 => 'en',
1 => 'es',
)
Get_Details -> TRUE
array (
'en' =>
stdClass::__set_state(array(
'language' => 'en',
'name' => 'English',
'native' => 'English',
'direction' => '0',
'enabled' => '1',
'plurals' => '0',
'formula' => '',
'domain' => '',
'prefix' => '',
'weight' => '0',
'javascript' => '',
)),
*/
return $active_languages;
}