2 function mkdru_admin_settings($form, &$form_state) {
3 $form['pz2_js_path']=array(
4 '#type' => 'textfield',
5 '#title' => t('Path to Pazpar2 client library'),
6 '#description' => t('Absolute path to the directory containing pz2.js within the current domain. Do not include leading slash.'),
7 '#default_value' => variable_get('pz2_js_path', 'pazpar2/js'),
10 $form['search_settings'] = array(
11 '#type' => 'fieldset',
12 '#title' => t('Pazpar2/Service Proxy search settings'),
13 '#collapsible' => TRUE,
16 $form['search_settings']['pz2_path'] = array(
17 '#type' => 'textfield',
18 '#title' => t('Pazpar2/Service Proxy path'),
19 '#description' => t('Path that takes Pazpar2 commands via HTTP'),
21 '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
23 $form['search_settings']['use_sessions'] = array(
24 '#type' => 'checkbox', '#title' => t('Session handling'),
25 '#description' => t('Disable for use with Service Proxy'),
26 '#default_value' => variable_get('use_sessions', '1')
29 $form['sp_settings'] = array(
30 '#type' => 'fieldset',
31 '#title' => t('Service Proxy specific settings'),
32 '#collapsible' => TRUE,
35 $form['sp_settings']['sp_user'] = array(
36 '#type' => 'textfield',
37 '#title' => t('Service Proxy username'),
38 '#description' => t('Service Proxy username'),
40 '#default_value' => variable_get('sp_user','')
42 $form['sp_settings']['sp_pass'] = array(
43 '#type' => 'textfield',
44 '#title' => t('Service Proxy password'),
45 '#description' => t('Service Proxy password'),
47 '#default_value' => variable_get('sp_pass','')
50 return system_settings_form($form);