function calendar_systems_get_all_langauges in Calendar Systems 6
Same name and namespace in other branches
- 6.3 calendar_systems.module \calendar_systems_get_all_langauges()
Gets list of active langauges
2 calls to calendar_systems_get_all_langauges()
- calendar_systems_profile_delete_confirm in ./
calendar_systems.admin.inc - Delete editor profile confirmation form.
- calendar_systems_profile_overview in ./
calendar_systems.admin.inc - Display overview of setup Calendar systems Editor profiles; menu callback.
File
- ./
calendar_systems.module, line 143
Code
function calendar_systems_get_all_langauges() {
if (function_exists('locale_language_list')) {
$langs = locale_language_list('name', TRUE);
}
else {
$langs = array();
}
$result['default'] = array(
'name' => 'Default',
);
if (is_array($langs)) {
foreach ($langs as $name => $title) {
$result[$name] = array(
'name' => $title,
);
}
}
return $result;
}