This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/sites/all/modules/custom_search/includes/google_appliance.inc

21 lines
No EOL
537 B
PHP

<?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' => '');
}