The hook_views_pre_view checks if the display plugin is "page". This doesn't work for other types, such as "calendar".

Instead of trying to enumerate all possible views plugins, a check to see if the view has a path should be a more reliable.

CommentFileSizeAuthor
menutrails_calendar.patch723 bytesgrendzy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tekket’s picture

Thank you for the patch.