summaryrefslogtreecommitdiffstats
path: root/theme-settings-init.php
blob: 86d6412dc1da09ac53c679cc3366ba78c5169f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
// $Id$

if (is_null(theme_get_setting('zen_wireframes'))) {
  global $theme_key;
  // Save default theme settings
  $defaults = array(
    'zen_breadcrumb' => 'yes',
    'zen_breadcrumb_separator' => ' › ',
    'zen_breadcrumb_home' => 1,
    'zen_breadcrumb_trailing' => 1,
    'zen_layout' => 'slurpy-liquid',
    'zen_wireframes' => 0,
  );
  variable_set(
    str_replace('/', '_', 'theme_'. $theme_key .'_settings'),
    array_merge($defaults, theme_get_settings($theme_key))
  );
  // Force refresh of Drupal internals
  theme_get_setting('', TRUE);
}