0
|
1 <?php
|
|
2 /**
|
|
3 * Form builder for general settings used as a menu callback.
|
|
4 *
|
|
5 * @param array $form
|
|
6 * @param array $form_state
|
|
7 *
|
|
8 * @return array Output of the system_settings_form()
|
|
9 */
|
|
10 function digitalobjects_settings(array $form, array &$form_state) {
|
|
11
|
|
12
|
|
13 $form['digitalobjects_bibdata_path'] = array(
|
|
14 '#type' => 'textfield',
|
|
15 '#title' => t('bibdataprovider URL'),
|
|
16 '#default_value' => variable_get('digitalobjects_bibdata_path',"http://localhost:18080/metadata"),
|
|
17 '#maxlength' => 255,
|
|
18 '#description' => t('URL to the bibdataprovider (no "/" at the end!)'),
|
|
19
|
|
20 );
|
|
21
|
|
22 $form['digitalobjects_docuviewer_path'] = array(
|
|
23 '#type' => 'textfield',
|
|
24 '#title' => t('docuviewer URL'),
|
|
25 '#default_value' => variable_get('digitalobjects_docuviewer_path',"http://localhost:18080/ECHOdocuView"),
|
|
26 '#maxlength' => 255,
|
|
27 '#description' => t('URL to the docuviewer (no "/" at the end!)'),
|
|
28
|
|
29 );
|
|
30
|
|
31 return system_settings_form($form);
|
|
32
|
|
33 }
|
|
34
|
|
35
|