Merge pull request #23661 from comaiteseb/v17.0-hook

ajout d'un hook pour ajouter des landingpage dans la liste de user_ihm
This commit is contained in:
Laurent Destailleur 2023-01-26 00:41:15 +01:00 committed by GitHub
commit 6da3da6779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,16 @@ if (isModEnabled('ticket')) {
$tmparray['ticket/list.php?mainmenu=ticket&leftmenu='] = 'Tickets';
}
// Hook for insertion new items in the List of possible landing pages
$reshook = $hookmanager->executeHooks('addToLandingPageList', $tmparray, $object);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
} elseif ($reshook > 0) {
$tmparray=$hookmanager->resArray;
} elseif ($reshook == 0) {
$tmparray=array_merge($tmparray, $hookmanager->resArray);
}
$head = user_prepare_head($object);
$title = $langs->trans("User");