You are here

function calendar_systems_default in Calendar Systems 6.2

API function to get current default calendar.

Return value

An array of default calendar information.

2 calls to calendar_systems_default()
calendar_systems_call in ./calendar_systems.module
API function to call a calendar's internal routine.
calendar_systems_pick in ./calendar_systems.module
API function which selects the best-fit calendar for the environment.

File

./calendar_systems.module, line 281
Contains Calendar Systems module hooks, helpers and API functions.

Code

function calendar_systems_default() {

  // Return the system default calendar, use gregorian calendar as fallback.
  return calendar_systems_calendars('calendar', variable_get('calendar_systems_default_calendar', 'gregorian'));
}