ajout d'un hook pour ajouter des landingpage dans la liste de user_ihm

This commit is contained in:
Sébastien NASSIET 2023-01-11 22:51:17 +01:00
parent 8ced29cb00
commit 303220a88f

View File

@ -215,6 +215,14 @@ 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');
} else if ($reshook == 0) {
$tmparray=$hookmanager->resArray;
}
$head = user_prepare_head($object);
$title = $langs->trans("User");