1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Administration functions for UUID Service module.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Settings form for UUID Services.
|
10
|
*
|
11
|
* @return array
|
12
|
* Configuration form structure.
|
13
|
*/
|
14
|
function uuid_services_settings() {
|
15
|
$form['uuid_services_support_all_entity_types'] = array(
|
16
|
'#type' => 'checkbox',
|
17
|
'#title' => t('Support all UUID entity types'),
|
18
|
'#description' => t('Check this box to automatically provide Services integration for all entity types with UUID support.'),
|
19
|
'#default_value' => variable_get('uuid_services_support_all_entity_types', FALSE),
|
20
|
);
|
21
|
$form['uuid_services_allowed_media_mimes'] = array(
|
22
|
'#type' => 'textarea',
|
23
|
'#title' => t('Allowed Media Mime type'),
|
24
|
'#default_value' => variable_get('uuid_services_allowed_media_mimes', UUID_SERVICES_DEFAULT_ALLOWED_MEDIA_MIMES),
|
25
|
'#cols' => 40,
|
26
|
'#rows' => 5,
|
27
|
'#description' => t("Enter one mime type per line you wish to allow in the system without extension. Example mime type '<em>video/brightcove</em>'."),
|
28
|
);
|
29
|
return system_settings_form($form);
|
30
|
}
|