Should be approximately the same but you use search_intro as your hook and the test for whether or not an error has occurred would be to check either empty($errors) or !$show['errors'] (either of those checks, both shouldn't be necessary because the show is set earlier by the $errors variable).
You could probably also use search_complete as the hook, but any other hooks on search_intro could potentially change the results before search_complete is called.
|