New module 'Custom Search'

This commit is contained in:
Manuel Cillero 2017-07-26 14:44:21 +02:00
parent 21fa3db391
commit 80408e0950
28 changed files with 2970 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<?php
/**
* @file
* Path generation for Google Appliance Search.
*
* Available vars:
* $orginal_keywords: user input
* $types: content types (machine names[])
* $terms: taxonomy terms (tids[])
* $keys: complete search phrase, as core would have done it
*
* To return:
* the complete search path
*
*/
function _custom_search_google_appliance_search($variables) {
$type = variable_get('google_appliance_default_search_path', 'google-appliance');
return array('path' => $type . '/' . $variables['keys'], 'query' => '');
}