function fullcalendar_views_query_alter in FullCalendar 7.2
Same name and namespace in other branches
- 8.5 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
- 8 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
- 8.2 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
- 8.3 fullcalendar.views_execution.inc \fullcalendar_views_query_alter()
- 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;
}