You are here

function _calendar_systems_languages_active in Calendar Systems 7.3

Same name and namespace in other branches
  1. 8 calendar_systems.helpers.inc \_calendar_systems_languages_active()
  2. 7 calendar_systems.helpers.inc \_calendar_systems_languages_active()
  3. 7.2 calendar_systems.helpers.inc \_calendar_systems_languages_active()

Internal helper to return site's current language.

Return value

Current language.

1 call to _calendar_systems_languages_active()
calendar_systems_get_calendar_instance in ./calendar_systems.module
Gets an instance of the calendar object for the selected calendar system acording to the settings or the passed arguments

File

./calendar_systems.module, line 335
Contains Calendar Systems hook implementations and helpers.

Code

function _calendar_systems_languages_active() {
  global $language;

  // Better?
  return $language && $language->language ? $language->language : 'default';
}