You are here

function apachesolr_confgen_get_local_path in Apache Solr Config Generator 7

Same name and namespace in other branches
  1. 6 apachesolr_confgen.module \apachesolr_confgen_get_local_path()
3 calls to apachesolr_confgen_get_local_path()
apachesolr_confgen_form_validate in ./apachesolr_confgen.admin.inc
Implements hook_form_validate().
apachesolr_confgen_get_original_qp in ./apachesolr_confgen.module
apachesolr_confgen_textfiles_variable_info in apachesolr_confgen_textfiles/apachesolr_confgen_textfiles.variable.inc
Implements hook_variable_info().

File

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

Code

function apachesolr_confgen_get_local_path($solr_version = '1.4.x') {
  $local_path = '';
  switch ($solr_version) {
    case '1.4.x':
      $local_path = 'solr-1.4/';
      break;
    case '3.5.x':
      $local_path = 'solr-3.x/';
      break;
    case '4.5.x':
      $local_path = 'solr-4.x/';
      break;
    case '5.2.x':
      $local_path = 'solr-5.x/';
      break;
  }
  return $local_path;
}