forked from PiratenLSA/piratenhagenlsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
43 lines (34 loc) · 1.03 KB
/
theme-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Implementation of THEMEHOOK_settings() function.
*
* @param $saved_settings
* array An array of saved settings for this theme.
* @return
* array A form array.
*/
function piratenhagenlsa_settings($saved_settings) {
$defaults = array(
'piratenhagenlsa_smallbuttons' => 0,
'piratenhagenlsa_printauthors' => 0,
'piratenhagenlsa_alternativestyle' => 0
);
$settings = array_merge($defaults, $saved_settings);
$form['piratenhagenlsa_smallbuttons'] = array(
'#type' => 'checkbox',
'#title' => t('Benutze kleine Block Köpfe'),
'#default_value' => $settings['piratenhagenlsa_smallbuttons'],
);
$form['piratenhagenlsa_printauthors'] = array(
'#type' => 'checkbox',
'#title' => t('Zeige Autoren an'),
'#default_value' => $settings['piratenhagenlsa_printauthors'],
);
$form['piratenhagenlsa_alternativestyle'] = array(
'#type' => 'checkbox',
'#title' => t('Benutze alternativen Style'),
'#default_value' => $settings['piratenhagenlsa_alternativestyle'],
);
return $form;
}
?>