Système de Hooks: Difference between revisions

Line 40: Line 40:
- ''''hookname'''' est le nom de la méthode qui sera appelée. Par exemple: 'formObjectOptions'
- ''''hookname'''' est le nom de la méthode qui sera appelée. Par exemple: 'formObjectOptions'


- '''$parameters''' is a custom array to send more custom data to the hook (the hooking function can then process it). Place here anything you want, it can be a file, an array of strings, anything...
- '''$parameters''' is a custom array to send more custom data to the hook (the hooking function can then process it). Place here anything you want, it can be a file, an array of strings, anything.. For example:
 
eg:
<source lang="php">
<source lang="php">
$parameters=array('file'=>'my/path/to/a/file', 'customnames'=>array('henry','david','john'));
$parameters=array('file'=>'my/path/to/a/file', 'customnames'=>array('henry','david','john'));