function fullcalendar_field_is_date in FullCalendar 7.2
Same name and namespace in other branches
- 8.5 fullcalendar.module \fullcalendar_field_is_date()
- 8 fullcalendar.module \fullcalendar_field_is_date()
- 8.2 fullcalendar.module \fullcalendar_field_is_date()
- 8.3 fullcalendar.module \fullcalendar_field_is_date()
- 8.4 fullcalendar.module \fullcalendar_field_is_date()
Determines if a given field is a date field.
Parameters
object $field: A Views field handler object.
bool $include_gcal: Boolean indicating whether or not to count gcal fields as a date field.
Return value
bool Boolean, TRUE if the field is a date field, FALSE otherwise.
4 calls to fullcalendar_field_is_date()
- fullcalendar_legend_build_legend in fullcalendar_legend/
fullcalendar_legend.module - Builds the legend as a render array.
- fullcalendar_plugin_style_fullcalendar::fullcalendar_parse_fields in includes/
views/ plugins/ fullcalendar_plugin_style_fullcalendar.inc - fullcalendar_prepare_events in theme/
theme.inc - Build a render array representing the events.
- fullcalendar_views_pre_view in includes/
views/ fullcalendar.views.inc - Implements hook_views_pre_view().
File
- ./
fullcalendar.module, line 333 - Provides a views style plugin for FullCalendar
Code
function fullcalendar_field_is_date($field, $include_gcal = FALSE) {
if ($include_gcal && $field->field == 'gcal') {
return TRUE;
}
return !empty($field->definition['is date']) && isset($field->field_info);
}