Closed (cannot reproduce)
Project:
Top Searches
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2008 at 13:21 UTC
Updated:
26 Aug 2011 at 09:16 UTC
Rather than hook_form_alter, you should look at hook_search_preprocess.
Comments
Comment #1
z.stolar commentedI did.
In fact, the first tests were done with that hook, but it returns each word at a time, and as I understand, this hook is meant for separate words, not joining them together...
Do you suggest I'd gather them together with, for example, a static variable?
I agree that the use of hooks is generally a better idea, but I don't see the advantage in this particular case.
Comment #2
douggreen commentedI didn't spend any time looking at it. But I had hoped that this hook would solve it for you. What I do recommend is that you help us out by proposing either a new hook or a slight tweak in an existing hook for Drupal 7.x. Thanks!
Comment #3
yang_yi_cn commentedthe problem of hook_search_preprocess() is it's called both when updating index and actually search, so this hook is not really designed for this purpose.
Comment #4
douggreen commentedI'm doing some ticket triage and closing all open 5.x or moving them to the latest appropriate version. The issue summary rewrite here, has lost the initial question, so I'm not even sure what the problem was. Closing.