Again, typo that should've been fixed.
[mkdru-moved-to-drupal.org.git] / mkdru.admin.inc
1 <?php
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'),
8     '#required' => TRUE
9   );
10   $form['search_settings']  = array(
11     '#type' => 'fieldset',
12     '#title' => t('Pazpar2/Service Proxy search settings'),
13     '#collapsible' => TRUE,
14     '#collapsed' => FALSE
15   );
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'),
20     '#required' => TRUE,
21     '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
22   );
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')
27   );
28
29   $form['sp_settings']  = array(
30     '#type' => 'fieldset',
31     '#title' => t('Service Proxy specific settings'),
32     '#collapsible' => TRUE,
33     '#collapsed' => FALSE
34   );
35   $form['sp_settings']['sp_user'] = array(
36     '#type' => 'textfield',
37     '#title' => t('Service Proxy username'),
38     '#description' => t('Service Proxy username'),
39     '#required' => FALSE,
40     '#default_value' =>  variable_get('sp_user','')
41   );
42   $form['sp_settings']['sp_pass'] = array(
43     '#type' => 'textfield',
44     '#title' => t('Service Proxy password'),
45     '#description' => t('Service Proxy password'),
46     '#required' => FALSE,
47     '#default_value' => variable_get('sp_pass','')
48   );
49
50   return system_settings_form($form);
51 }