You are here

function fullcalendar_views_ajax_data_alter in FullCalendar 8

Same name and namespace in other branches
  1. 8.5 fullcalendar.views_execution.inc \fullcalendar_views_ajax_data_alter()
  2. 8.2 fullcalendar.views_execution.inc \fullcalendar_views_ajax_data_alter()
  3. 8.3 fullcalendar.views_execution.inc \fullcalendar_views_ajax_data_alter()
  4. 8.4 fullcalendar.views_execution.inc \fullcalendar_views_ajax_data_alter()
  5. 7.2 includes/views/fullcalendar.views.inc \fullcalendar_views_ajax_data_alter()

Implements hook_views_ajax_data_alter().

File

./fullcalendar.views_execution.inc, line 218
Contains Views module runtime hooks.

Code

function fullcalendar_views_ajax_data_alter(&$commands, &$view) {
  $style = $view->display_handler
    ->getOption('style');
  if ($style['type'] != 'fullcalendar') {
    $commands = [];
  }
}