Hooks » History » Version 1

Holger Just, 2010-05-11 18:26

1 1 Holger Just
h1. HowTo Use Hooks
2 1 Holger Just
3 1 Holger Just
*This How-To is only relevant for plugin authors trying to extend Redmine*
4 1 Holger Just
5 1 Holger Just
Redmine supports the concept of Hooks. It is an API to allow external code to extend the core Redmine functionality in a clean way. Hooks allow the plugin author to register callback functions which are executed one after another when the Redmine code reaches specific points in the code.
6 1 Holger Just
7 1 Holger Just
Additional methods to extend or replace Redmine code are:
8 1 Holger Just
* [[Plugin_Internals#Using-Rails-callbacks-in-Redmine-plugins|Using rails callbacks]]
9 1 Holger Just
* [[Plugin_Internals#Wrapping-an-existing-method|Wrapping an existing method]] using @alias_method_chain@
10 1 Holger Just
11 1 Holger Just
h2. Register functions to hooks