Adding a hook addToLandingPageList in userihm context

This commit is contained in:
Sébastien NASSIET 2023-01-23 19:51:00 +01:00
parent 642ba67a55
commit c5fcd99f6e

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");