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.
Follow-up to: #1861676: Remove stylesheets[] and scripts[] .info file property support for modules
Problem
forum_page()
cannot return a render array, becausetemplate_preprocess_forums()
tries to override the breadcrumb, and the breadcrumb is rendered on the page before the preprocessor gets invoked.
Goal
- Move the breadcrumb override somewhere else, so that
forum_page()
can return a render array.
Comments
Comment #1
larowlantemplate_preprocess_page()? again, doesn't feel right but I can't place my finger on why.
Comment #2
andypostSee patch #148145-65: "Forums" title is not localized