-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotgo_api.admin.inc
More file actions
executable file
·41 lines (40 loc) · 1.36 KB
/
dotgo_api.admin.inc
File metadata and controls
executable file
·41 lines (40 loc) · 1.36 KB
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
<?php
/**
* Menu callback for admin settings.
*/
function dotgo_api_settings() {
$form = array();
$form['dotgo'] = array(
'#type' => 'fieldset',
'#title' => t('DOTGO SETTINGS'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['dotgo']['dotgo_account'] = array(
'#type' => 'textfield',
'#title' => t('DOTGO Account'),
'#description' => t('DOTGO Account example:7k5gt-r425f-gxpoo-lgl04'),
'#default_value' => variable_get('dotgo_account', '7k5gt-r425f-gxpoo-lgl04'),
);
$form['dotgo']['dotgo_subdomain_designator'] = array(
'#type' => 'checkbox',
'#title' => t('Subdomain Designator'),
'#description' => t('Allow subdomain in the designator.'),
'#default_value' => variable_get('dotgo_subdomain_designator', 0),
);
$form['debug'] = array(
'#type' => 'fieldset',
'#title' => t('DEBUG SETTINGS'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['debug']['dotgo_debug'] = array(
'#type' => 'checkbox',
'#title' => t('Debug Mode'),
'#description' => t('Turns on Debug Mode which allows you to view index.cmrl and engines as anonymous for development purposes'),
// Defaults to 1 until we save index.cmrl to DOTGO server.
'#default_value' => variable_get('dotgo_debug', 1),
);
$form = system_settings_form($form);
return $form;
}