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.
Came across a bug in Drupal HEAD where template_preprocess_page() sets $variables['mission'] then clears it again thanks to some faulty logic. Thus, mission statements cannot be displayed.
This one-liner solves the problem for me.
ttyl!
--Alex Markley
Comment | File | Size | Author |
---|---|---|---|
#2 | theme_mission-177421-2.patch | 1.08 KB | chx |
#1 | theme-mission-01.patch | 1.98 KB | desbeers |
theme_mission_statement.diff | 673 bytes | alexmarkley | |
Comments
Comment #1
desbeers CreditAttribution: desbeers commentedConfirmed the problem and patch works well. Problem appeared in http://drupal.org/node/137236. I altered the patch a bit: changed the comment above the affected code, the previous one made no sense, and put the 'mission' code together in a more logical place.
Comment #2
chx CreditAttribution: chx commentedI shortened the patch.
Comment #3
desbeers CreditAttribution: desbeers commentedChx, yes, patch is shorter, but I liked to have all the 'mission' code grouped together. Just cosmetic; but easier to read.
Comment #4
dvessel CreditAttribution: dvessel commented#2 works for me. Lets move on.
Comment #5
Gábor HojtsyIndeed, we try to keep variables together, so I committed #2. Thanks!
Comment #6
(not verified) CreditAttribution: commented