[dev] callHook() function

Chuck Hagenbuch chuck at horde.org
Thu May 15 19:04:39 PDT 2003


Quoting Marko Djukic <marko at oblo.com>:

> creates a standardised function to call hooks with some error checking
> returning a PEAR Error if failed... and the optional second parameter if a
> different hook file is required for example under a /config directory of
an
> app.

You should probably modify this to use @include_once and check the return
value so that you don't die on a bad (parse error) hooks file.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
The alligators were there, too, in a bathtub inside the house.


More information about the dev mailing list