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:
commit
6da3da6779
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user