You are here

function apachesolr_confgen_variable_get in Apache Solr Config Generator 7

Same name and namespace in other branches
  1. 6 apachesolr_confgen.module \apachesolr_confgen_variable_get()
3 calls to apachesolr_confgen_variable_get()
apachesolr_confgen_advanced_settings_apachesolr_confgen_solrconfig_alter in apachesolr_confgen_advanced_settings/apachesolr_confgen_advanced_settings.module
Implements hook_apachesolr_confgen_solrconfig_alter().
apachesolr_confgen_advanced_settings_apachesolr_confgen_solrcore_properties_alter in apachesolr_confgen_advanced_settings/apachesolr_confgen_advanced_settings.module
Implements hook_apachesolr_confgen_solrcore_properties_alter().
apachesolr_confgen_textfiles_apachesolr_confgen_zip_file_alter in apachesolr_confgen_textfiles/apachesolr_confgen_textfiles.module
Implements hook_apachesolr_confgen_zip_file_alter().

File

./apachesolr_confgen.module, line 174
Generator for Apache Solr Configuration Files.

Code

function apachesolr_confgen_variable_get($name, $solr_version = '1.4.x') {
  $value = variable_realm_get('solr_version', $solr_version, $name, NULL);
  if (NULL === $value) {
    $value = variable_get_value($name);
  }
  return apachesolr_confgen_format_variable($name, $value);
}