Override hook to modify existing code

https://www.dolibarr.org/forum/t/the-new-hook-system/24200/5?u=rasha

i forgot to update this post

i previously added this


> $this->const = array(
> 0 => array(‘MAIN_MODULE_MYMODULE_HOOKS’, ‘chaine’, ‘invoiceindex’, ‘Hooks modifying dash for invoice’, 1),
> );

, this entry will be automatically added when ienable the module. i removed it from database, reenable the module and check the entry into llx_const exists. and its done !.

1 Like