-
Notifications
You must be signed in to change notification settings - Fork 0
/
d8ux.admin.inc
52 lines (43 loc) · 1.62 KB
/
d8ux.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
48
49
50
51
52
<?php
function d8ux_admin_settings() {
$form = array();
// Toolbar module
$form['d8ux_toolbar'] = array(
'#type' => 'fieldset',
'#title' => t('Toolbar module'),
'#collapsible' => TRUE,
);
// Edit account link
$form['d8ux_toolbar']['d8ux_toolbar_edit_account_link'] = array(
'#type' => 'checkbox',
'#title' => t('Show edit account link in toolbar'),
'#default_value' => variable_get('d8ux_toolbar_edit_account_link', 0),
);
// User module
$form['d8ux_user'] = array(
'#type' => 'fieldset',
'#title' => t('User Account Edit Page'),
'#collapsible' => TRUE,
);
// Consistent fieldset for user account edit page
$form['d8ux_user']['d8ux_consistent_fieldsets'] = array(
'#type' => 'checkbox',
'#title' => t('Consistent fieldsets (collapsible)'),
'#default_value' => variable_get('d8ux_consistent_fieldsets', 0),
'#description' => t('Some fieldsets are collapsible and some not. Use this setting to make all fieldsets on User Account Edit page collapsible.'),
);
// User account edit page fieldsets collapsed
$form['d8ux_user']['d8ux_fieldsets_collapsed'] = array(
'#type' => 'checkbox',
'#title' => t('Collapse fieldsets by default'),
'#default_value' => variable_get('d8ux_fieldsets_collapsed', 0),
);
/* $form['d8ux_user']['d8ux_edit_account_vertical_tabs'] = array(
'#type' => 'checkbox',
'#title' => t('Use vertical tabs on User Account edit page'),
'#default_value' => variable_get('d8ux_edit_account_vertical_tabs', 0),
'#description' => t('Use vertical tabs on user account edit page.'),
);
*/
return system_settings_form($form);
}