You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
878 B
39 lines
878 B
<?php |
|
|
|
/** |
|
* @file |
|
* Implementation of Roblib search for searching several targets. |
|
*/ |
|
|
|
use Drupal\Core\Routing\RouteMatchInterface; |
|
|
|
/** |
|
* Implements hook_theme(). |
|
*/ |
|
function roblib_search_theme($existing, $type, $theme, $path) { |
|
return [ |
|
'roblib_search_results' => [ |
|
'variables' => ['query' => NULL], |
|
], |
|
'roblib_search_other_sources' => [ |
|
'variables' => ['query' => NULL], |
|
], |
|
]; |
|
} |
|
|
|
|
|
/** |
|
* Implements hook_help(). |
|
*/ |
|
function roblib_search_help($route_name, RouteMatchInterface $route_match) { |
|
switch ($route_name) { |
|
case 'help.page.roblib_search': |
|
return t( |
|
'<p> |
|
The Roblib Search is a module to allow searching across multiple targets. |
|
This module does not know how to retrieve results but fires hooks that other |
|
modules can implement to gather and display results. |
|
</p>' |
|
); |
|
} |
|
}
|
|
|