You are here

function _datex_calendar_is_valid in Datex 7.2

Check to see if a calendar is available and valid in datex API.

1 call to _datex_calendar_is_valid()
datex_tokens in ./datex.tokens.inc
Implements hook_tokens().

File

datex_api/datex_api.module, line 205

Code

function _datex_calendar_is_valid($calendar) {
  switch (_datex_get_calendar_name_from_name($calendar)) {
    case 'jalali':
      return TRUE;
      break;
    default:
      return FALSE;
  }
}