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.
Updated: Comment #N
Problem/Motivation
Forum uses a global for the table header, this is built in the forum manager and accessed in the theme layer
Proposed resolution
12% Less crazy*
Remaining tasks
Patch
Review
Rejoice
User interface changes
None
API changes
New ::getHeader() method on ForumManagerInterface
No global available for those rogues who like them
*Actual results may vary. Please see a doctor if symptoms persist.
Comment | File | Size | Author |
---|---|---|---|
#11 | forum-bizarre-globals.2.patch | 5.5 KB | larowlan |
#11 | interdiff.txt | 6.14 KB | larowlan |
#2 | forum-bizarre-globals.1.patch | 3.59 KB | larowlan |
Comments
Comment #1
larowlan/me takes out crazy stick
Comment #2
larowlanTagging as API change because new method on ForumManagerInterface.
Updated issue summary as such.
Comment #3
larowlanComment #4
Damien Tournoud CreditAttribution: Damien Tournoud commentedAny way to not replace a global by a more convoluted global?
Why isn't this passed to the template directly?
Comment #5
andypostIt looks that form manager need split like #2188287: Split CommentManager in two to separate query and render code
Comment #7
larowlanoh and forum.manager -> forum_manager idiot
Comment #8
larowlanagreed, this would make sense to move the other SQL queries out of forum.module too
yes that is better again
Comment #9
larowlanAdded #2205185: Split up ForumManager to create ForumIndexStorage and added to #2068325: [META] Convert entity SQL queries to the Entity Query API
Comment #10
andypostother fun thing here is table sort for repository...
Comment #11
larowlanChanges as per #4
Comment #13
larowlanYeah I need to start looking at views again for /forum /forum/x now that we have #1867642: Expose forum tables to views
Comment #14
larowlanpatch is green - chance of more reviews?
Comment #15
andypostthis var used in preprocess only, so template do not need adjustments.
Comment #16
catchCommitted/pushed to 8.x, thanks!