Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Custom Search working with the Google Appliance module appears to rely on the path 'google-appliance', but this path is not set by the Google Appliance module. From _custom_search_google_appliance_search():
function _custom_search_google_appliance_search($variables) {
$type = variable_get('google_appliance_default_search_path', 'google-appliance');
return array('path' => $type . '/' . $variables['keys'], 'query' => array());
}
Google Appliance 7.x uses the path 'gsearch', and doesn't allow you to configure the default search path in the 7.x version.
Comment | File | Size | Author |
---|---|---|---|
#1 | custom_search-google_appliance_path-2070199-2.patch | 829 bytes | vinmassaro |
Comments
Comment #1
vinmassaro CreditAttribution: vinmassaro commentedPatch attached to change path to 'gsearch'.
Comment #2
vinmassaro CreditAttribution: vinmassaro commentedComment #3
jdanthinne CreditAttribution: jdanthinne commentedPatch seems ok for me, but if someone else using Google appliance could confirm that, I'd be happy to commit the changes.
Comment #4
vinmassaro CreditAttribution: vinmassaro commentedAppreciate the quick response. You can see Google Appliance sets the search results page to 'gsearch' in google_appliance_menu() and the README states the usage of this path. Thanks.
Comment #5
jdanthinne CreditAttribution: jdanthinne commentedOk then, pushed to DEV.
Comment #6
vinmassaro CreditAttribution: vinmassaro commentedThanks! Would it be possible to get attribution per https://drupal.org/node/1146430?
Comment #7
jdanthinne CreditAttribution: jdanthinne commentedSorry, I'm using Tower on Mac, and not aware on how to give attribution to a patch…
Do you think it's possible on a patch already committed?
Comment #8
vinmassaro CreditAttribution: vinmassaro commentedTower will let you revert the commit but not apply the patch with attribution, apparently. You can do both steps easily from the command line. It will revert my commit and then apply the patch using git am:
You can then load Tower and browse to this clone, and review the work before pushing upstream.
Comment #9
jdanthinne CreditAttribution: jdanthinne commentedOk, done!
http://drupalcode.org/project/custom_search.git/commit/3af79a1
Comment #10
vinmassaro CreditAttribution: vinmassaro commentedMuch appreciated!