From 3f7d5cf790b9f5d074e02f71bd0301b3d0cff4c1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 10 Jan 2025 00:33:51 +0100 Subject: [PATCH] NEW add hook 'addMoreInformationsBlock' --- htdocs/user/card.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 816cd95db31..84da0249955 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -2088,6 +2088,13 @@ if ($action == 'create' || $action == 'adduserldap') { print ''; print ''; + // Other informations block + $parameters = array('caneditpasswordandsee' => $permissiontoeditpasswordandsee, 'caneditpasswordandsend' => $permissiontoeditpasswordandsend); + $reshook = $hookmanager->executeHooks('addMoreInformationsBlock', $parameters, $object, $action); // Note that $action and $object may have been modified by hook + if ($reshook > 0) { + print $hookmanager->resPrint; + } + print ''; print '';