-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbsdapi.admin.inc
47 lines (40 loc) · 1.42 KB
/
bsdapi.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
/**
* Settings form for global fb_social custimazation
*/
function bsdapi_settings_form(){
$form['bsdapi'] = array(
'#collapsible' => TRUE,
'#title' => t('Blue State Digital API information'),
'#type' => 'fieldset'
);
$form['bsdapi']['bsdapi_url'] = array(
'#default_value' => variable_get('bsdapi_url', ''),
'#title' => t('The base URL of the API'),
'#type' => 'textfield',
'#required' => TRUE
);
$form['bsdapi']['bsdapi_key'] = array(
'#default_value' => variable_get('bsdapi_key', ''),
'#title' => t('Blue State Digital API key'),
'#type' => 'textfield',
'#required' => TRUE
);
$form['bsdapi']['bsdapi_secret'] = array(
'#default_value' => variable_get('bsdapi_secret', ''),
'#title' => t('Blue State Digital Shared Secret key'),
'#type' => 'textfield',
'#required' => TRUE
);
$form['bsdapi']['deferred_result_call_interval'] = array(
'#default_value' => variable_get('deferred_result_call_interval', '30'),
'#title' => t('Deferred call interval in seconds'),
'#type' => 'textfield'
);
$form['bsdapi']['deferred_result_call_max_attempts'] = array(
'#default_value' => variable_get('deferred_result_call_max_attempts', '20'),
'#title' => t('Max attempts for the deferred result calls'),
'#type' => 'textfield'
);
return system_settings_form($form);
}