diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 5adc7bbb17b..164c07c7ae0 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -44,6 +44,8 @@ $nosearch = GETPOST('nosearch', 'int'); $categstatic = new Categorie($db); if (is_numeric($type)) $type = Categorie::$MAP_ID_TO_CODE[$type]; // For backward compatibility +// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array array +$hookmanager->initHooks(array('categoryindex')); /* * View diff --git a/htdocs/contact/document.php b/htdocs/contact/document.php index 2065ab772e6..ad9a0e9c0d5 100644 --- a/htdocs/contact/document.php +++ b/htdocs/contact/document.php @@ -75,6 +75,8 @@ if ($id > 0) $object->fetch($id); $upload_dir = $conf->societe->multidir_output[$object->entity].'/contact/'.dol_sanitizeFileName($object->ref); $modulepart = 'contact'; +// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context +$hookmanager->initHooks(array('contactdocument')); /* * Actions diff --git a/htdocs/contact/note.php b/htdocs/contact/note.php index ae32ef5c95e..6a6ccd5a7ee 100644 --- a/htdocs/contact/note.php +++ b/htdocs/contact/note.php @@ -44,6 +44,8 @@ if ($id > 0) $object->fetch($id); $permissionnote = $user->rights->societe->creer; // Used by the include of actions_setnotes.inc.php +// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context +$hookmanager->initHooks(array('contactcard')); /* * Actions