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.
One side effect of the node system is that all the default node flags (promote, revisions, etc) have only one default setting for all node types.
The most meaningless result of that IMO is that forum topics are promoted to the front page by default. This is probably one of the most confusing things people run into when setting up a Drupal forum.
The attached patch adds a row to the variable table to force forum topics to not be promoted by default. This will only affect new installations.
Patch is for CVS, but IMO it should go in 4.6 too.
Comment | File | Size | Author |
---|---|---|---|
#2 | forumpromote_0.patch | 2.57 KB | Steven |
forumpromote.patch | 1.14 KB | Steven | |
Comments
Comment #1
Steven CreditAttribution: Steven commentedSorry I based this on a quick glance at my variables table which seemed to be stale. But I've noticed a problem with the way node options are checked in blogapi. Better patch coming.
Comment #2
Steven CreditAttribution: Steven commentedOkay this patch is now a little different ;). It fixes the checking of attributes in blogapi: not only was the default for the variable wrong, but it also checked for array keys rather than array values.
Finally, I fixed the database.sql fix so it correctly makes forum topics not be promoted by default.
Comment #3
Dries CreditAttribution: Dries commentedCommtited to HEAD.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-6.
Comment #5
(not verified) CreditAttribution: commented