function _datex_date_field_calendar in Datex 7.3
Create a datex-calendar based on field config and the schema set for it.
9 calls to _datex_date_field_calendar()
- datex_date_field_formatter_settings_summary_alter in ./
datex_date.inc - Implements hook_date_field_formatter_settings_summary_alter().
- datex_date_formatter_dates_alter in ./
datex_date.inc - Implements hook_date_formatter_dates_alter().
- datex_date_select_process_alter in ./
datex_date.inc - Implements hook_date_select_process_alter().
- datex_popup_date_popup_process_alter in datex_popup/
datex_popup.module - Implements hook_date_popup_process_alter().
- _datex_date_popup_field_element_validate_callback in datex_popup/
datex_popup.module - Form element validation callback for date popup form element.
File
- ./
datex_date.inc, line 89 - Provides support for date module.
Code
function _datex_date_field_calendar($element, $check_granularity = TRUE, $lang_code = NULL) {
$is = isset($element['datex_schema']);
if (_datex_element_schema($element) === 'disabled') {
return NULL;
}
if ($check_granularity && !_datex_granularity_supported(_datex_date_field_granularity($element))) {
return NULL;
}
$tz = isset($element['#date_timezone']) ? $element['#date_timezone'] : NULL;
return datex_factory($tz, _datex_language_calendar_name(_datex_element_schema($element)), $lang_code);
}