/[drupal]/contributions/themes/TVframe/theme-settings.php
ViewVC logotype

Contents of /contributions/themes/TVframe/theme-settings.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Wed Mar 4 22:22:57 2009 UTC (8 months, 3 weeks ago) by kreynen
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/x-php
fixed sub-sub theme issues
1 <?php
2 // $Id: theme-settings.php,v 1.6 2008/05/13 09:19:13 johnalbin Exp $
3
4 /**
5 * Implementation of THEMEHOOK_settings() function.
6 *
7 * @param $saved_settings
8 * An array of saved settings for this theme.
9 * @return
10 * A form array.
11 */
12 function TVframe_settings($saved_settings) {
13
14 // Get the default values from the .info file.
15 $themes = list_themes();
16 $defaults = $themes['TVframe']->info['settings'];
17
18 // Merge the saved variables and their default values.
19 $settings = array_merge($defaults, $saved_settings);
20
21 /*
22 * Create the form using Forms API: http://api.drupal.org/api/6
23 */
24 $form = array();
25 /* -- Delete this line if you want to use this setting
26 $form['subtheme_example'] = array(
27 '#type' => 'checkbox',
28 '#title' => t('Use this sample setting'),
29 '#default_value' => $settings['subtheme_example'],
30 '#description' => t("This option doesn't do anything; it's just an example."),
31 );
32 // */
33
34 // Add the base theme's settings.
35 include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php';
36 $form += zen_settings($saved_settings, $defaults);
37
38 // Remove some of the base theme's settings.
39 unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.
40
41 // Return the form
42 return $form;
43 }

  ViewVC Help
Powered by ViewVC 1.1.2