You are here

function fullcalendar_views_query_alter in FullCalendar 7.2

Same name and namespace in other branches
  1. 8.5 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
  2. 8 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
  3. 8.2 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
  4. 8.3 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
  5. 8.4 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()

Implements hook_views_query_alter().

Force the query to be distinct.

File

includes/views/fullcalendar.views.inc, line 154
Contains Views module hooks.

Code

function fullcalendar_views_query_alter(&$view, &$query) {
  if ($view->display_handler
    ->get_option('style_plugin') != 'fullcalendar') {
    return;
  }
  $query->distinct = TRUE;
}