Currently, the only way to set the defaults for theme settings under Drupal 6 is using this gawd-awful hack: http://drupal.org/node/177868 egh! Its in-elegant. And while it worked ok in D5, it breaks when you have sub-themes in D6.

But lets fix that in Zen 6 and then get this feature rolled into Drupal 7!

In the a zen sub-theme’s .info file, we should be able to define:

settings[zen_block_editing] = 1
settings[zen_breadcrumb] = yes
settings[zen_breadcrumb_separator] = ' › '
settings[zen_breadcrumb_home] = 1
settings[zen_breadcrumb_trailing] = 1
settings[zen_layout] = border-politics-liquid
settings[zen_wireframes] = 0

And just have it work!

Even though theme_get_settings() is icky, this should still be possible to do in Zen.

Comments

johnalbin’s picture

Title: Allow themes to define settings in their .info files » Allow themes to set defaults for settings in their .info files
Status: Active » Fixed

Fixed in HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.