You are here

function _custom_search_google_appliance_search in Custom Search 6

Same name and namespace in other branches
  1. 7 includes/google_appliance.inc \_custom_search_google_appliance_search()

@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

1 call to _custom_search_google_appliance_search()
custom_search_submit in ./custom_search.module
Alter the search to respect the search modes selected.

File

includes/google_appliance.inc, line 18
Path generation for Google Appliance Search.

Code

function _custom_search_google_appliance_search($variables) {
  $type = variable_get('google_appliance_default_search_path', 'google-appliance');
  return array(
    'path' => $type . '/' . $variables['keys'],
    'query' => '',
  );
}