1
|
<?php
|
2
|
// $Id: theme-settings.php,v 1.1 2009/08/25 19:15:43 troy Exp $
|
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
|
|
14
|
$defaults = array(
|
15
|
'admin_left_column' => 1,
|
16
|
'admin_right_column' => 0,
|
17
|
'banner_image' => 'cdm-header_3.jpg'
|
18
|
);
|
19
|
|
20
|
$settings = array_merge($defaults, $saved_settings);
|
21
|
|
22
|
|
23
|
$form['tnt_container'] = array(
|
24
|
'#type' => 'fieldset',
|
25
|
'#title' => t('Column settings'),
|
26
|
'#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.'),
|
27
|
'#collapsible' => TRUE,
|
28
|
'#collapsed' => false,
|
29
|
);
|
30
|
|
31
|
// General Settings
|
32
|
$form['tnt_container']['admin_left_column'] = array(
|
33
|
'#type' => 'checkbox',
|
34
|
'#title' => t('Show left column in admin section'),
|
35
|
'#default_value' => $settings['admin_left_column']
|
36
|
);
|
37
|
|
38
|
$form['tnt_container']['admin_right_column'] = array(
|
39
|
'#type' => 'checkbox',
|
40
|
'#title' => t('Show right column in admin section'),
|
41
|
'#default_value' => $settings['admin_right_column']
|
42
|
);
|
43
|
|
44
|
// $form['edit_container'] = array(
|
45
|
// '#type' => 'fieldset',
|
46
|
// '#title' => t('Site Banner'),
|
47
|
// '#description' => t('Select the banner image to be displayed.'),
|
48
|
// '#collapsible' => TRUE,
|
49
|
// '#collapsed' => false,
|
50
|
// );
|
51
|
//
|
52
|
// // General Settings
|
53
|
// $form['edit_container']['banner_image'] = array(
|
54
|
// '#type' => 'select',
|
55
|
// '#title' => t('Banner Image'),
|
56
|
// '#default_value' => $settings['banner_image'],
|
57
|
// '#options' => array(
|
58
|
// 'cdm-platform-header_2.jpg' => t('CDM Platform'),
|
59
|
// 'cdm-header_3.jpg' => t('CDM Setups')
|
60
|
// )
|
61
|
// );
|
62
|
|
63
|
// Return theme settings form
|
64
|
return $form;
|
65
|
}
|
66
|
|
67
|
?>
|