function search_api_help in Search API 7
Same name and namespace in other branches
- 8 search_api.module \search_api_help()
Implements hook_help().
File
- ./
search_api.module, line 198 - Provides a flexible framework for implementing search services.
Code
function search_api_help($path) {
switch ($path) {
case 'admin/help#search_api':
$classes = array();
foreach (search_api_get_service_info() as $id => $info) {
$id = drupal_clean_css_identifier($id);
$name = check_plain($info['name']);
$description = isset($info['description']) ? $info['description'] : '';
$classes[] = "<h2 id=\"{$id}\">{$name}</h2>\n{$description}";
}
$output = '';
if ($classes) {
$output .= '<p>' . t('The following service classes are available for creating a search server.') . "</p>\n";
$output .= implode("\n\n", $classes);
}
return $output;
case 'admin/config/search/search_api':
return '<p>' . t('A search server and search index are used to execute searches. Several indexes can exist per server.<br />You need at least one server and one index to create searches on your site.') . '</p>';
}
}