function _datex_get_calendar_name_from_name in Datex 7.2
Always returns same name for a calendar.
A calendar could be called with many names, Such as Jalali and Persian, This function is for easing the pain.
2 calls to _datex_get_calendar_name_from_name()
- datex_popup_date_popup_process_alter in datex_popup/
datex_popup.module - Implements hook_date_popup_process_alter().
- _datex_calendar_is_valid in datex_api/
datex_api.module - Check to see if a calendar is available and valid in datex API.
File
- datex_api/
datex_api.module, line 222
Code
function _datex_get_calendar_name_from_name($name) {
switch (strtolower($name)) {
case 'fa':
case 'farsi':
case 'parsi':
case 'persian':
case 'jalali':
case 'shamsi':
case 'iran':
case 'iranian':
return 'jalali';
break;
default:
return '';
}
}