mkdru.removeLimits() no longer leaves dangling limit_subject
[mkdru-moved-to-drupal.org.git] / mkdru.admin.inc
1 <?php
2 /**
3  * @file
4  * Module config.
5  */
6 function mkdru_admin_settings() {
7   $form['pz2_js_path']=array(
8     '#type' => 'textfield',
9     '#title' => t('Path to Pazpar2 client library'),
10     '#description' => t('Absolute path to the directory containing pz2.js within the current domain. Do not include leading slash.'),
11     '#default_value' => variable_get('pz2_js_path', 'pazpar2/js'),
12     '#required' => TRUE
13   );
14   $form['search_settings']  = array(
15     '#type' => 'fieldset',
16     '#title' => t('Pazpar2/Service Proxy search settings'),
17     '#collapsible' => TRUE,
18     '#collapsed' => FALSE
19   );
20   $form['search_settings']['pz2_path'] = array(
21     '#type' => 'textfield',
22     '#title' => t('Pazpar2/Service Proxy path'),    
23     '#description' => t('Path that takes Pazpar2 commands via HTTP'),
24     '#required' => TRUE,
25     '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
26   );
27   $form['search_settings']['use_sessions'] = array(
28     '#type' => 'checkbox',    '#title' => t('Session handling'),
29     '#description' => t('Disable for use with Service Proxy'),
30     '#default_value' => variable_get('use_sessions', '1')
31   );
32
33   $form['sp_settings']  = array(
34     '#type' => 'fieldset',
35     '#title' => t('Service Proxy specific settings'),
36     '#collapsible' => TRUE,
37     '#collapsed' => FALSE
38   );
39   $form['sp_settings']['sp_user'] = array(
40     '#type' => 'textfield',
41     '#title' => t('Service Proxy username'),
42     '#description' => t('Service Proxy username'),
43     '#required' => FALSE,
44     '#default_value' =>  variable_get('sp_user','')
45   );
46   $form['sp_settings']['sp_pass'] = array(
47     '#type' => 'textfield',
48     '#title' => t('Service Proxy password'),
49     '#description' => t('Service Proxy password'),
50     '#required' => FALSE,
51     '#default_value' => variable_get('sp_pass','')
52   );
53   return system_settings_form($form);
54 }