Various fixes and new module-wide config page.
[mkdru-moved-to-drupal.org.git] / mkdru.admin.inc
index 47a2524..994cd36 100644 (file)
@@ -2,8 +2,10 @@
 function mkdru_admin_settings() {
   $form['pz2_js_path']=array(
     '#type' => 'textfield',
-    '#title' => t('Path to Pazpar2 client library, pz2.js'),
-    '#default_value' => variable_get('pz2_js_path', '/pazpar2/pz2.js'),
+    '#title' => t('Path to Pazpar2 client library'),
+    '#description' => t('Absolute path to the directory containing pz2.js within the current domain. Do not include leading slash.'),
+    '#default_value' => variable_get('pz2_js_path', 'pazpar2/js'),
+    '#required' => TRUE
   );
 
   return system_settings_form($form);