Prev |  | Next

## 2.4. Message search

### 2.4.1. search_redirect

Phorum does not jump to the search results page directly after posting the search form. Instead, it will first do a redirect to a secondary URL. This system is used, so Phorum can show an intermediate "Please wait while searching" page before doing the redirect. This is useful in case searching is taking a while, in which case users might otherwise repeatedly start hitting the search button when results don't show up immediately.
This hook can be used to modify the parameters that are used for building the redirect URL. This can be useful in case a search page is implemented that uses more fields than the standard search page.

Call time:

Right before the primary search redirect (for showing the "Please wait while searching" intermediate page) is done.

Hook input:

An array of phorum_get_url() parameters that will be used for building the redirect URL.

Hook output:

The possibly updated array of parameters.

Prev | Up | Next
| Home |