diff --git a/inc/tag.class.php b/inc/tag.class.php index 1eef7fe..dbf09b8 100644 --- a/inc/tag.class.php +++ b/inc/tag.class.php @@ -47,7 +47,8 @@ public static function getTypeName($nb = 1) { * @return array of string itemtypes */ public static function getBlacklistItemtype() { - return [ + $additionalTypes = Plugin::doHookFunction('tag_get_blacklisted_types', []); + return array_merge([ 'PluginTagTag', 'PluginTagTagItem', 'Itil_Project', @@ -59,7 +60,7 @@ public static function getBlacklistItemtype() { 'PluginPrintercountersRecord', 'ITILSolution', 'ITILFollowup', - ]; + ], $additionalTypes); } /**