| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: theme-settings.php,v 1.1 2009/08/14 09:06:19 kehan Exp $ 3 /** 4 * @file Default theme settings 5 */ 6 // Include the definition of zen_settings() and zen_theme_get_default_settings(). 7 include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php'; 8 9 10 /** 11 * Implementation of THEMEHOOK_settings() function. 12 * 13 * @param $saved_settings 14 * An array of saved settings for this theme. 15 * @return 16 * A form array. 17 */ 18 function rflr_settings($saved_settings) { 19 20 // Get the default values from the .info file. 21 $defaults = zen_theme_get_default_settings('rflr'); 22 23 // Merge the saved variables and their default values. 24 $settings = array_merge($defaults, $saved_settings); 25 26 /* 27 * Create the form using Forms API: http://api.drupal.org/api/6 28 */ 29 $form = array(); 30 31 // Add the base theme's settings. 32 $form += zen_settings($saved_settings, $defaults); 33 34 // Remove some of the base theme's settings. 35 unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet. 36 37 // Return the form 38 return $form; 39 }
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 |