From 5ff18baaa8e7b5592c527b1522f1330ebef63d99 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 11 Jan 2021 17:13:07 +0100 Subject: [PATCH] Add hook to allow external modules to add their own shortlist of recent objects --- htdocs/comm/card.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index 53e498fe303..cf64e0a1d04 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -1266,6 +1266,12 @@ if ($object->id > 0) } } + // Allow external modules to add their own shortlist of recent objects + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreRecentObjects', $parameters, $object, $action); + if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + else print $hookmanager->resPrint; + print ''; print '
';