You are here

function calendar_systems_get_active_lang in Calendar Systems 6

Same name and namespace in other branches
  1. 5 calendar_systems.module \calendar_systems_get_active_lang()
  2. 6.3 calendar_systems.module \calendar_systems_get_active_lang()

Gets name of the currently acitve language

1 call to calendar_systems_get_active_lang()
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

File

./calendar_systems.module, line 188

Code

function calendar_systems_get_active_lang() {
  global $language;
  $result = 'default';
  if ($language) {
    if ($language->language) {
      $result = $language->language;
    }
  }
  return $result;
}