Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
menutrails_calendar.patch | 723 bytes | grendzy |
Comments
Comment #1
tekket CreditAttribution: tekket commentedThank you for the patch.