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.
This is very minor since most sites have side bars. There's a $layout variable initially set from phptemplate.engine inside phptemplate_page().
It's set for indicating the layout based on the presence of side block regions. Garland and a handful of other themes use this for setting classes and changing layouts.
If no sidebars are present, the variable will not be set.
Comment | File | Size | Author |
---|---|---|---|
#3 | phptemplate_7.patch | 992 bytes | drumm |
#2 | layout_var1.patch | 721 bytes | dvessel |
layout_var.patch | 508 bytes | dvessel | |
Comments
Comment #1
drummInstead, we could initialize the variable to 'none' above
and avoid having an if statement.
Comment #2
dvessel CreditAttribution: dvessel commentedDone.
Comment #3
drummRerolled from Drupal's root directory and changing nearby comment style.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #5
drummCommitted to 5
Comment #6
(not verified) CreditAttribution: commented