I don't know exactly what you need to do. Find a page that gives the error message you want and then find that code in the page and put it in your new modification OR write your own error phrase and use it in the code. I don't know what hook that code is using, but you'll want to use a more global hook instead of a search hook (if that is the case there).
As I said before, play with it on a test site.
|