function acquia_search_help in Acquia Connector 7.3
Same name and namespace in other branches
- 7 acquia_search/acquia_search.module \acquia_search_help()
- 7.2 acquia_search/acquia_search.module \acquia_search_help()
Implements hook_help().
File
- acquia_search/
acquia_search.module, line 330 - 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 = isset($arg[5]) ? $arg[5] : apachesolr_default_environment();
$environment = apachesolr_environment_load($env_id);
$subscription = acquia_agent_settings('acquia_subscription_data');
$sub_active = !empty($subscription['active']);
if (acquia_search_environment_connected($environment) && $sub_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;
}
}