google_appliance.inc 534 B

123456789101112131415161718192021
  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. */
  16. function _custom_search_google_appliance_search($variables) {
  17. $type = variable_get('google_appliance_default_search_path', 'google-appliance');
  18. return array('path' => $type . '/' . $variables['keys'], 'query' => array());
  19. }