-
Notifications
You must be signed in to change notification settings - Fork 0
/
sirv.admin.inc
42 lines (38 loc) · 1.19 KB
/
sirv.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
<?php
/**
* @file
* Administrative functionality for Sirv settings and profiles.
*/
/**
* Menu callback for Sirv settings form.
*/
function sirv_settings_form($form, &$form_state) {
$form = array();
$form['sirv_key'] = array(
'#type' => 'textfield',
'#title' => t('Key'),
'#default_value' => variable_get('sirv_key', ''),
);
$form['sirv_secret_key'] = array(
'#type' => 'textfield',
'#title' => t('Secret Key'),
'#default_value' => variable_get('sirv_secret_key', ''),
);
$form['sirv_bucket'] = array(
'#type' => 'textfield',
'#title' => t('Bucket'),
'#default_value' => variable_get('sirv_bucket', ''),
);
$form['sirv_host'] = array(
'#type' => 'textfield',
'#title' => t('Host'),
'#default_value' => variable_get('sirv_host', 'http://s3.sirv.com'),
);
$form['sirv_profiles_directory'] = array(
'#type' => 'textfield',
'#title' => t('Profiles directory'),
'#description' => t('Enter the name of the directory that contains Sirv profiles. The default name is %dir_name.', array('%dir_name' => 'Profiles')),
'#default_value' => variable_get('sirv_profiles_directory', 'Profiles'),
);
return system_settings_form($form);
}