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

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

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


Revision 1.1 - (show annotations) (download) (as text)
Fri Dec 26 10:06:56 2008 UTC (11 months ago) by troy
Branch: MAIN
CVS Tags: DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
[!] Several formatting fixes were added
[+] Forgotten theme-settings.php was added
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of THEMEHOOK_settings() function.
6 *
7 * @param $saved_settings
8 * array An array of saved settings for this theme.
9 * @return
10 * array A form array.
11 */
12 function phptemplate_settings($saved_settings) {
13 $defaults = array(
14 'admin_left_column' => 1,
15 'admin_right_column' => 0
16 );
17
18 $settings = array_merge($defaults, $saved_settings);
19
20
21 $form['tnt_container'] = array(
22 '#type' => 'fieldset',
23 '#title' => t('Column settings'),
24 '#description' => t('Sometimes the content of admin section is much wider than the central column (especially on "views" and "theme" configuration pages), and as a result the content is cut. Here you can choose if you want the columns to be displayed in admin section, or not.'),
25 '#collapsible' => TRUE,
26 '#collapsed' => false,
27 );
28
29 // General Settings
30 $form['tnt_container']['admin_left_column'] = array(
31 '#type' => 'checkbox',
32 '#title' => t('Show left column in admin section'),
33 '#default_value' => $settings['admin_left_column']
34 );
35
36 $form['tnt_container']['admin_right_column'] = array(
37 '#type' => 'checkbox',
38 '#title' => t('Show right column in admin section'),
39 '#default_value' => $settings['admin_right_column']
40 );
41
42 // Return theme settings form
43 return $form;
44 }
45
46 ?>

  ViewVC Help
Powered by ViewVC 1.1.2