[dev] Splitting hooks.php

Chuck Hagenbuch chuck at horde.org
Fri Sep 7 16:42:05 UTC 2007


Quoting Jan Schneider <jan at horde.org>:

> I would like to propose splitting up hooks.php to have a separate file
> for each application's hooks. The Horde::callHook() method already
> supports it, so it wouldn't break BC, and I think it's much more
> intuitive for new users to have example hooks for an application
> bundled with the application.
> It makes more sense for us developers too because it doesn't make much
> sense to update Horde code if you introduce a new hook in an
> application.

Make sense to me, I think this was always the eventual intent. I think  
we just need to change the $app parameter in an application's  
Horde::callHook calls at the same time as we introduce hooks.php.dist  
for that app - should be fine.

-chuck


More information about the dev mailing list