function search_api_solr_help in Search API Solr 7
Same name and namespace in other branches
- 8.3 search_api_solr.module \search_api_solr_help()
- 8 search_api_solr.module \search_api_solr_help()
- 8.2 search_api_solr.module \search_api_solr_help()
- 4.x search_api_solr.module \search_api_solr_help()
Implements hook_help().
File
- ./
search_api_solr.module, line 52 - Provides a Solr-based service class for the Search API.
Code
function search_api_solr_help($path, array $arg = array()) {
if ($path == 'admin/config/search/search_api') {
// Included because we need the REQUIREMENT_* constants.
include_once DRUPAL_ROOT . '/includes/install.inc';
module_load_include('install', 'search_api_solr');
$reqs = search_api_solr_requirements('runtime');
foreach ($reqs as $req) {
if (isset($req['description'])) {
$type = $req['severity'] == REQUIREMENT_ERROR ? 'error' : ($req['severity'] == REQUIREMENT_WARNING ? 'warning' : 'status');
drupal_set_message($req['description'], $type);
}
}
}
}