-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontenttools.admin.inc
47 lines (41 loc) · 1.52 KB
/
contenttools.admin.inc
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
44
45
46
47
<?php
/**
* @file
* Provide a settings form for the contenttools module.
*/
/**
* Provide a settings form for the module.
*/
function contenttools_settings_form() {
$form = array();
$form['contentpalette_fontawesome_cdn'] = array(
'#type' => 'checkbox',
'#title' => t('Use the Font Awesome CDN'),
'#default_value' => variable_get('contentpalette_fontawesome_cdn', 1),
'#tree' => FALSE,
'#description' => t('Check here to use the Font Awesome CDN. Alternatively you can download it locally. See the readme.txt'),
);
$form['contentpalette_display'] = array(
'#type' => 'checkbox',
'#title' => t('Display the content palette'),
'#default_value' => variable_get('contentpalette_display', 1),
'#tree' => FALSE,
'#description' => t('Check here to display the content palette'),
);
$form['contentpalette_alignment'] = array(
'#type' => 'radios',
'#title' => t('Palette alignment'),
'#default_value' => variable_get('contentpalette_alignment', 0),
'#tree' => FALSE,
'#options' => array(0 => t('Left'), 1 => t('Right')),
'#description' => t('Align the palette to either the left or right side of the screen.'),
);
$form['contentpalette_collapse_formats'] = array(
'#type' => 'checkbox',
'#title' => t('Collapse Text Formats fieldset'),
'#default_value' => variable_get('contentpalette_collapse_formats', 1),
'#tree' => FALSE,
'#description' => t('Collapse the Text Formats fieldset when creating content.'),
);
return system_settings_form($form);
}