From 2cbfbe8116dc29d51d48161ab967633dbae8067e Mon Sep 17 00:00:00 2001 From: ajs6f Date: Fri, 13 Nov 2015 13:38:25 -0500 Subject: [PATCH] Better variable naming convention --- includes/admin.form.inc | 10 +++++----- includes/tuque.inc | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/admin.form.inc b/includes/admin.form.inc index cd52d456..8a071873 100644 --- a/includes/admin.form.inc +++ b/includes/admin.form.inc @@ -48,20 +48,20 @@ function islandora_repository_admin(array $form, array &$form_state) { ), ), ), - 'sparql_endpoint_externalized' => array( + 'islandora_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), + '#default_value' => variable_get('islandora_sparql_endpoint_externalized', FALSE), ), - 'sparql_endpoint' => array( + 'islandora_sparql_endpoint' => array( '#type' => 'textfield', '#title' => t('SPARQL Query Endpoint'), - '#default_value' => variable_get('sparql_endpoint', ""), + '#default_value' => variable_get('islandora_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))), + 'invisible' => array(':input[name="islandora_sparql_endpoint_externalized"]' => array('checked' => FALSE))), ), 'islandora_repository_pid' => array( '#type' => 'textfield', diff --git a/includes/tuque.inc b/includes/tuque.inc index 5e5e3a02..3ffa6f0c 100644 --- a/includes/tuque.inc +++ b/includes/tuque.inc @@ -87,7 +87,7 @@ class IslandoraTuque { } if (!isset($sparql_endpoint)) { - $sparql_endpoint = variable_get('sparql_endpoint', $url); + $sparql_endpoint = variable_get('islandora_sparql_endpoint', $url); } if (self::exists()) {