You are here

function acquia_search_environment_connected in Acquia Search 6.3

Tests whether the environment is connected to Acquia Search.

4 calls to acquia_search_environment_connected()
acquia_search_apachesolr_query_alter in ./acquia_search.module
Implementation of hook_apachesolr_modify_query().
acquia_search_disable in ./acquia_search.module
Implementation of hook_disable().
acquia_search_form_apachesolr_environment_edit_form_alter in ./acquia_search.module
Implementation of hook_form_[form_id]_alter().
acquia_search_help in ./acquia_search.module
Implementation of hook_help().

File

./acquia_search.module, line 171
Integration between Acquia Drupal and Acquia's hosted solr search service.

Code

function acquia_search_environment_connected($environment) {
  if ($environment['service_class'] == 'AcquiaSearchService') {
    return TRUE;
  }
  $acquia_search_key = apachesolr_environment_variable_get($environment['env_id'], 'acquia_search_key');
  if (!empty($acquia_search_key)) {
    return TRUE;
  }
  return FALSE;
}