You are here

function apachesolr_confgen_variable_realm_info in Apache Solr Config Generator 7

Implements hook_variable_realm_info().

File

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

Code

function apachesolr_confgen_variable_realm_info() {
  $realm['solr_version'] = array(
    'title' => t('Solr Version'),
    'weight' => 110,
    'controller class' => 'SolrVersionRealm',
    'store class' => 'VariableStoreRealmStore',
    'keys' => array(
      '1.4.x' => 'solr 1.4.x',
      '3.5.x' => 'solr 3.x (>= 3.5)',
      '4.5.x' => 'solr 4.x (>= 4.5)',
      '5.2.x' => 'solr 5.x (>= 5.2)',
    ),
    'default key' => '1.4.x',
    'select' => FALSE,
    'variable name' => t('solr version dependent'),
    'variable class' => 'solr-version-dependent',
    'form settings' => TRUE,
    'form switcher' => TRUE,
  );
  return $realm;
}