I've decided to try to upgrade the trip_search module (or at least parts of it) to 4.7, for various reasons (notably the fact that I want much more control over the user interface than I get with the standard search). It's turning out much more difficult than I thought :-(
Notably, I'm currently stuck on using "pager", which trip_search calls without using pager_query. I think I've worked out how to initialise the various variables needed by pager (actually I just copied this from Robert Douglass) and the code to get the paged string seems very simple, it is:
if ($pager = theme('pager', array(), $max, 0, )) {
$str .= $pager; // $str contains all the search results on the page, plus the pager links
}
However, for a reason which is completely mysterious to me, when I get the (correct) list back, with the correct number of page number links at the bottom, the links all point to the same place which is:
http://localhost/drupal-4.7.2/trip_search?page=1&edit[keys]=lorem+ipsum&edit[content_type]=&edit[form_id]=trip_search_form
Why does it look like this and not like this:
http://localhost/drupal-4.7.2/trip_search?page=1&keys=lorem+ipsum
which is what I would expect? And what do I need to do to get this to come out right?
I'm especially confused because this app