Hooks » History » Version 1
Holger Just, 2010-05-11 18:26
1 | 1 | Holger Just | h1. HowTo Use Hooks |
---|---|---|---|
2 | |||
3 | *This How-To is only relevant for plugin authors trying to extend Redmine* |
||
4 | |||
5 | 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 | |||
7 | Additional methods to extend or replace Redmine code are: |
||
8 | * [[Plugin_Internals#Using-Rails-callbacks-in-Redmine-plugins|Using rails callbacks]] |
||
9 | * [[Plugin_Internals#Wrapping-an-existing-method|Wrapping an existing method]] using @alias_method_chain@ |
||
10 | |||
11 | h2. Register functions to hooks |