-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch_api_field_map.module
34 lines (30 loc) · 1.21 KB
/
search_api_field_map.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* @file search_api_field_map.module
* Contains hook implementations for the Field Map Search API Module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function search_api_field_map_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the search_api_field_map module.
case 'help.page.search_api_field_map':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module facilitates indexing data from multiple Drupal sites into a single search index.') . '</p>';
$output .= '<h3>' . t('Usage') . '</h3>';
$output .= '<p>' . t('On each site included in the mapped field search, you will need to') . ':</p>';
$output .= '<ol>';
$output .= '<li>' . t('Install this module') . '</li>';
$output .= '<li>' . t('Configure a Search API server to connect to the shared index') . '</li>';
$output .= '</ol>';
$output .= '<h3>' . t('More information') . '</h3>';
$output .= '<ul>';
$output .= '<li><a href="docs/usage.md">' . t('How to use this module') . '</a></li>';
$output .= '</ul>';
return $output;
default:
}
}