Use of $GLOBALS['calendar_is_calendar']

nevets - May 16, 2008 - 15:22
Project:Calendar
Version:5.x-2.0-rc
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Currently $GLOBALS['calendar_is_calendar'] is set in _calendar_views_query_alter, but since that is not always called from calendar_views_query_alter I wonder if the first part of calendar_views_query_alter should not be

  if ($view->build_type == 'page') {
    $GLOBALS['calendar_is_calendar'] = TRUE;
  }

so the calendar switch block works any time one is viewing a calendar as a page view.

#1

KarenS - July 6, 2008 - 10:13
Status:active» fixed

The switch block is intended to only show up on views that have been given a page type of 'Calendar'. It won't work right on any other type. I just confirmed that in the very latest -dev versions of both Date and Calendar the switch block works as intended.

#2

Anonymous (not verified) - July 23, 2008 - 10:56
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.