From dbfc6d0715e8f07a11b24b2b010e4a9e05251d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 20 Apr 2023 22:12:56 +0200 Subject: [PATCH 1/2] add hooks in ecm card --- htdocs/ecm/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 6f4b9577c92..7e4e76080f8 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -89,6 +89,8 @@ $permissiontocreatedir = $user->hasRight('ecm', 'setup'); $permissiontodelete = $user->hasRight('ecm', 'upload'); $permissiontodeletedir = $user->hasRight('ecm', 'setup'); +// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context +$hookmanager->initHooks(array('ecmindexcard', 'globalcard')); /* * Actions From 78ae00d34279a408d41650e8d00ed2399601626a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 20 Apr 2023 22:14:02 +0200 Subject: [PATCH 2/2] add init hook --- htdocs/ecm/index_medias.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/ecm/index_medias.php b/htdocs/ecm/index_medias.php index 39118774430..a9e887a7e43 100644 --- a/htdocs/ecm/index_medias.php +++ b/htdocs/ecm/index_medias.php @@ -102,6 +102,8 @@ $websitekey = ''; $permissiontoadd = $permissiontouploadfile; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles +// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context +$hookmanager->initHooks(array('ecmmediascard', 'globalcard')); /* * Actions