Last updated February 14, 2013. Created on August 28, 2007.
Edited by mcjim, sargath, sxz, DSquaredB. Log in to edit this page.

The following are the assumed defaults. When they are not defined, the theme will automatically take these values.
Default values are defined in _system_rebuild_theme_data().

Note: These defaults apply as a group. In other words, overriding a region with regions[sub_header] = Sub-header will omit the rest of the default regions. To gain them back, they must be redefined. This also applies to stylesheets. Even though it's not technically in a group, defining another stylesheet will prevent "style.css" from being included unless it is redefined.

regions
Drupal 7
regions[sidebar_first]  = Left sidebar
regions[sidebar_second] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[highlighted] = Highlighted
regions[help] = Help
regions[page_top] = Page Top
regions[page_bottom] = Page Bottom

Drupal 6

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
engine
Drupal 7
engine = phptemplate
features
Drupal 7
features[] = logo
features[] = name
features[] = slogan
features[] = node_user_picture
features[] = comment_user_picture
features[] = comment_user_verification
features[] = favicon
features[] = main_menu
features[] = secondary_menu

Drupal 6

features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links
theme settings
Drupal 7
settings[toggle_logo] = 1
settings[toggle_name] = 1
settings[toggle_slogan] = 1
settings[toggle_node_user_picture] = 1
settings[toggle_comment_user_picture] = 1
settings[toggle_comment_user_verification] = 1
settings[toggle_favicon] = 1
settings[toggle_main_menu] = 1
settings[toggle_secondary_menu] = 1
screenshot
screenshot = screenshot.png

Stylesheets and JavaScript defaults
The style.css and script.js files are only defaults in Drupal 6. In Drupal 7 you must define all CSS and JavaScript files you want the theme to use.

stylesheets
stylesheets[all][] = style.css
scripts
scripts[] = script.js
php (minimum support)
DRUPAL_MINIMUM_PHP is a constant. It points to the minimum requirements for Drupal core to run.
php = DRUPAL_MINIMUM_PHP

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

holingpoon’s picture

Hello all,

Are page_top and page_bottom still default regions for Drupal 7 themes? I don't see them in Garland at garland.info on Drupal 7.36. On the page Assigning content to regions, there's no mention of page_top and page_bottom as the Drupal 7 default regions, but as default regions for the Bartik theme.

Any pointers to this would be great. I'm just confused with the default regions defined on this page versus the default regions defined by the page Assigning content to regions.

andrey_sunday’s picture

These regions are hidden and are only used modules