From 71342fc41f843aa3ac276887b3858a51318f4eb1 Mon Sep 17 00:00:00 2001 From: ajs6f Date: Fri, 13 Nov 2015 11:44:30 -0500 Subject: [PATCH] Attempting to add config to admin form --- includes/admin.form.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/includes/admin.form.inc b/includes/admin.form.inc index 9f64cb6d..cd52d456 100644 --- a/includes/admin.form.inc +++ b/includes/admin.form.inc @@ -48,6 +48,21 @@ function islandora_repository_admin(array $form, array &$form_state) { ), ), ), + 'sparql_endpoint_externalized' => array( + '#type' => 'checkbox', + '#title' => t('Use an external SPARQL Query endpoint'), + '#description' => t('If an external query endpoint is used, the repository must be configured to update it.'), + '#default_value' => variable_get('sparql_endpoint_externalized', FALSE), + ), + 'sparql_endpoint' => array( + '#type' => 'textfield', + '#title' => t('SPARQL Query Endpoint'), + '#default_value' => variable_get('sparql_endpoint', ""), + '#description' => t("An external SPARQL Query endpoint to use."), + '#required' => FALSE, + '#states' => array( + 'invisible' => array(':input[name="sparql_endpoint_externalized"]' => array('checked' => FALSE))), + ), 'islandora_repository_pid' => array( '#type' => 'textfield', '#title' => t('Root Collection PID'),