Florian HENRY преди 4 години
родител
ревизия
cf1c4ce11f
променени са 3 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 2 0
      htdocs/categories/index.php
  2. 2 0
      htdocs/contact/document.php
  3. 2 0
      htdocs/contact/note.php

+ 2 - 0
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

+ 2 - 0
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

+ 2 - 0
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