blob: 456fc88f39e4ce59ee5ca186d306e0cd72c8c354 (
plain)
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
|
<?php
/**
* @file
* Muamba admin callbacks.
*/
/**
* Menu callback.
*/
function muamba_config_form($form, &$form_state) {
$form['muamba_reject_all_on_accept'] = array(
'#type' => 'checkbox',
'#title' => t('Reject all pending requests upon acceptance'),
'#default_value' => variable_get('muamba_reject_all_on_accept', FALSE),
'#description' => t('Cancel all other requests of an item upon acceptance.'),
);
$form['muamba_allow_request_unavailable'] = array(
'#type' => 'checkbox',
'#title' => t('Allow request of unavailable items'),
'#default_value' => variable_get('muamba_allow_request_unavailable', FALSE),
'#description' => t('Makes possible users request items that are not currently available.'),
);
return system_settings_form($form);
}
|