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'),
14 $form['search_settings'] = array(
15 '#type' => 'fieldset',
16 '#title' => t('Pazpar2/Service Proxy search settings'),
17 '#collapsible' => TRUE,
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'),
25 '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
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')
33 $form['sp_settings'] = array(
34 '#type' => 'fieldset',
35 '#title' => t('Service Proxy specific settings'),
36 '#collapsible' => TRUE,
39 $form['sp_settings']['sp_user'] = array(
40 '#type' => 'textfield',
41 '#title' => t('Service Proxy username'),
42 '#description' => t('Service Proxy username'),
44 '#default_value' => variable_get('sp_user','')
46 $form['sp_settings']['sp_pass'] = array(
47 '#type' => 'textfield',
48 '#title' => t('Service Proxy password'),
49 '#description' => t('Service Proxy password'),
51 '#default_value' => variable_get('sp_pass','')
53 return system_settings_form($form);