|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Implementation of Roblib search for searching several targets.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_theme().
|
|
|
|
*/
|
|
|
|
function roblib_search_theme($existing, $type, $theme, $path) {
|
|
|
|
return [
|
|
|
|
'roblib_search_results' => [
|
|
|
|
'variables' => ['query' => NULL],
|
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_init().
|
|
|
|
*/
|
|
|
|
/*function roblib_search_init() {
|
|
|
|
drupal_add_js(drupal_get_path('module', 'roblib_search') . '/js/imagesloaded.pkg.min.js');
|
|
|
|
drupal_add_js(drupal_get_path('module', 'roblib_search') . '/js/roblib_search.js');
|
|
|
|
drupal_add_css(drupal_get_path('module', 'roblib_search') . '/css/jquery.qtip.min.css');
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_help().
|
|
|
|
*/
|
|
|
|
function roblib_search_help($path, $arg) {
|
|
|
|
switch ($path) {
|
|
|
|
case 'admin/help#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>'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|