| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: theme-settings-init.php,v 1.1 2009/08/14 09:06:19 kehan Exp $ 3 /** 4 * @file Initialisation of theme settings with default values 5 */ 6 if (is_null(theme_get_setting('zen_breadcrumb_title'))) { 7 global $theme_key; 8 9 /* 10 * Modify the values in $defaults below if you want the subtheme to have 11 * different defaults than the main Zen theme. Make sure $defaults exactly 12 * matches the $defaults in the theme-settings.php file. 13 */ 14 $defaults = array( 15 'zen_block_editing' => 1, 16 'zen_breadcrumb' => 'yes', 17 'zen_breadcrumb_separator' => ' › ', 18 'zen_breadcrumb_home' => 1, 19 'zen_breadcrumb_trailing' => 1, 20 'zen_breadcrumb_title' => 1, 21 'zen_rebuild_registry' => 0, 22 'zen_wireframes' => 0, 23 ); 24 25 // Get default theme settings. 26 $settings = theme_get_settings($theme_key); 27 // Don't save the toggle_node_info_ variables. 28 if (module_exists('node')) { 29 foreach (node_get_types() as $type => $name) { 30 unset($settings['toggle_node_info_' . $type]); 31 } 32 } 33 // Save default theme settings. 34 variable_set( 35 str_replace('/', '_', 'theme_'. $theme_key .'_settings'), 36 array_merge($defaults, $settings) 37 ); 38 // Force refresh of Drupal internals. 39 theme_get_setting('', TRUE); 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |