Merge pull request #15948 from atm-kevin/NEW/Hook_on_customer_tab_to_add_shortlist

NEW Hook to allow external modules to add their own shortlist of recent objects
This commit is contained in:
Laurent Destailleur 2021-01-11 17:50:34 +01:00 committed by GitHub
commit 0999bc74d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '</div></div></div>';
print '<div style="clear:both"></div>';