You are here

function acquia_search_help in Acquia Connector 7

Same name and namespace in other branches
  1. 7.3 acquia_search/acquia_search.module \acquia_search_help()
  2. 7.2 acquia_search/acquia_search.module \acquia_search_help()

Implementation of hook_help().

File

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

Code

function acquia_search_help($path, $arg) {
  switch ($path) {
    case 'admin/config/search/apachesolr':
      $env_id = $arg[5] ? $arg[5] : variable_get('apachesolr_default_environment');
      $environment = apachesolr_environment_load($env_id);
      if (acquia_search_environment_connected($environment) && acquia_agent_subscription_is_active()) {
        $as_link = l(t('Acquia Search'), 'http://www.acquia.com/products-services/acquia-search');
        return t("Search is being provided by the !as network service.", array(
          '!as' => $as_link,
        ));
      }
      break;
  }
}