function _calendar_systems_languages_active in Calendar Systems 7.2
Same name and namespace in other branches
- 8 calendar_systems.helpers.inc \_calendar_systems_languages_active()
- 7.3 calendar_systems.module \_calendar_systems_languages_active()
- 7 calendar_systems.helpers.inc \_calendar_systems_languages_active()
Internal helper to return site's current language.
Return value
Current language.
3 calls to _calendar_systems_languages_active()
- calendar_systems_add_js_date_picker in ./
calendar_systems.module - Add javascript date picker for a field or set of fields
- calendar_systems_attach_js_date_picker in ./
calendar_systems.module - calendar_systems_get_calendar_system_name in ./
calendar_systems.helpers.inc - Helper to determine the active calendar system
File
- ./
calendar_systems.helpers.inc, line 438
Code
function _calendar_systems_languages_active() {
global $language;
// Better?
return $language && $language->language ? $language->language : 'default';
}