Reputation: 481
How can I add a second field to Drupal Search? F.e. Search all TITLE in CITY (two text fields)
I did a new input to the template and I want to call module_db_rewrite_sql() and left join the query but i can't get to POST data from my new field.
Any ideas? dump
Upvotes: 0
Views: 118
Reputation: 557
Rather than adding the second field to the template, I would suggest using hook_form_alter to alter Drupal's core search form. Lullabot also has a nice tutorial on the subject.
Upvotes: 1