You are here

google_appliance.inc in Custom Search 7

Same filename and directory in other branches
  1. 6 includes/google_appliance.inc

Path generation for Google Appliance Search.

Available vars: $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

File

includes/google_appliance.inc
View source
<?php

/**
 * @file
 * Path generation for Google Appliance Search.
 *
 * Available vars:
 * $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', 'gsearch');
  return array(
    'path' => $type . '/' . $variables['keys'],
    'query' => array(),
  );
}

Functions

Namesort descending Description
_custom_search_google_appliance_search @file Path generation for Google Appliance Search.