google_appliance.inc 523 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Path generation for Google Appliance Search.
  5. *
  6. * Available vars:
  7. * $keywords: user input
  8. * $types: content types (machine names[])
  9. * $terms: taxonomy terms (tids[])
  10. * $keys: complete search phrase, as core would have done it
  11. *
  12. * To return:
  13. * the complete search path
  14. */
  15. function _custom_search_google_appliance_search($variables) {
  16. $type = variable_get('google_appliance_default_search_path', 'gsearch');
  17. return array('path' => $type . '/' . $variables['keys'], 'query' => array());
  18. }