[commits] [Wiki] changed: Doc/Dev/ConversionH4
Jan Schneider
jan at horde.org
Wed Aug 31 11:19:11 UTC 2011
jan Wed, 31 Aug 2011 11:19:11 +0000
Modified page: http://wiki.horde.org/Doc/Dev/ConversionH4
New Revision: 1.26
Change log: Hoks
@@ -97,8 +97,21 @@
<code type="php">
require $registry->get('templates', 'horde') . '/common-header.inc';
</code>
+
+++ Hooks
+
+Hooks are methods of an App_Hooks class in config/hook.php.dist now.
They are called different too:
+
+<code type="php">
+try {
+ Horde::callHook('hookname', array($arg1, $arg2, ...), 'applicationname');
+} catch (Horde_Exception_HookNotSet $e) {
+}
+</code>
+
+If the hook is supposed to be called often, it should be checked if
the code exists with Horde::hookExists() instead of catching the
Horde_Exception_HookNotSet exception.
++ Images/Graphics
OLD:
More information about the commits
mailing list