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