You are here

function fullcalendar_plugin_style_fullcalendar::fullcalendar_parse_fields in FullCalendar 7.2

1 call to fullcalendar_plugin_style_fullcalendar::fullcalendar_parse_fields()
fullcalendar_plugin_style_fullcalendar::validate in includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc
Validate that the plugin is correct and can be saved.

File

includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc, line 173
Contains the FullCalendar style plugin.

Class

fullcalendar_plugin_style_fullcalendar
@file Contains the FullCalendar style plugin.

Code

function fullcalendar_parse_fields($include_gcal = TRUE) {

  // Ensure the handlers are there.
  $this->view
    ->init_handlers();
  $labels = $this->display->handler
    ->get_field_labels();
  $date_fields = array();
  foreach ($this->view->field as $id => $field) {
    if (fullcalendar_field_is_date($field, $include_gcal)) {
      $date_fields[$id] = $labels[$id];
    }
  }
  return $date_fields;
}