Browse Source

Better variable naming convention

pull/636/head
ajs6f 9 years ago
parent
commit
2cbfbe8116
  1. 10
      includes/admin.form.inc
  2. 2
      includes/tuque.inc

10
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', '#type' => 'checkbox',
'#title' => t('Use an external SPARQL Query endpoint'), '#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.'), '#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', '#type' => 'textfield',
'#title' => t('SPARQL Query Endpoint'), '#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."), '#description' => t("An external SPARQL Query endpoint to use."),
'#required' => FALSE, '#required' => FALSE,
'#states' => array( '#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( 'islandora_repository_pid' => array(
'#type' => 'textfield', '#type' => 'textfield',

2
includes/tuque.inc

@ -87,7 +87,7 @@ class IslandoraTuque {
} }
if (!isset($sparql_endpoint)) { if (!isset($sparql_endpoint)) {
$sparql_endpoint = variable_get('sparql_endpoint', $url); $sparql_endpoint = variable_get('islandora_sparql_endpoint', $url);
} }
if (self::exists()) { if (self::exists()) {

Loading…
Cancel
Save