跳转到主要内容
东方龙马 提交于 2 August 2011

原文链接:https://www.drupal.org/node/171206

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.

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.

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
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
Taxonomy upgrade extras