You are here

function _apachesolr_reference_solr_environments in Apachesolr Reference 7

Returns a list of the available SOLR environments.

Return value

array Array of SOLR environments.

1 call to _apachesolr_reference_solr_environments()
apachesolr_reference_field_settings_form in ./apachesolr_reference.module
Implements hook_field_settings_form().

File

./apachesolr_reference.module, line 620
functionality for creating reference fields to apache solr objects.

Code

function _apachesolr_reference_solr_environments() {
  $environments =& drupal_static(__FUNCTION__);
  if (isset($environments)) {
    return $environments;
  }
  module_load_include('module', 'apachesolr');
  $environments = apachesolr_load_all_environments();
  return $environments;
}