3737
3838class Hooks
3939{
40- // Boolean hooks
40+ // Boolean hooks
4141 const CSRF_COMPLIANT = 'csrf_compliant ' ;
4242
43- // File hooks
43+ // File hooks
4444 const ADD_CSS = 'add_css ' ;
4545 const ADD_JAVASCRIPT = 'add_javascript ' ;
4646 const ADD_JAVASCRIPT_MODULE = 'add_javascript_module ' ;
@@ -52,7 +52,7 @@ class Hooks
5252 const ADD_JAVASCRIPT_MODULE_ANONYMOUS_PAGE = 'add_javascript_module_anonymous_page ' ;
5353 const ADD_HEADER_TAG_ANONYMOUS_PAGE = 'add_header_tag_anonymous_page ' ;
5454
55- // Function hooks with no parameters
55+ // Function hooks with no parameters
5656 const CHANGE_ENTITY = 'change_entity ' ;
5757 const CHANGE_PROFILE = 'change_profile ' ;
5858 const DISPLAY_LOGIN = 'display_login ' ;
@@ -62,8 +62,10 @@ class Hooks
6262 const POST_INIT = 'post_init ' ;
6363 const CONFIG_PAGE = 'config_page ' ;
6464 const USE_MASSIVE_ACTION = 'use_massive_action ' ;
65+ const IMPORT_ITEM = 'import_item ' ;
66+ const MENU_TOADD = 'menu_toadd ' ;
6567
66- // Specific function hooks with parameters
68+ // Specific function hooks with parameters
6769 const RULE_MATCHED = 'rule_matched ' ;
6870 const VCARD_DATA = 'vcard_data ' ;
6971 const POST_PLUGIN_DISABLE = 'post_plugin_disable ' ;
@@ -72,7 +74,7 @@ class Hooks
7274 const POST_PLUGIN_UNINSTALL = 'post_plugin_uninstall ' ;
7375 const POST_PLUGIN_ENABLE = 'post_plugin_enable ' ;
7476
75- // Function hooks with parameters and output
77+ // Function hooks with parameters and output
7678 const DISPLAY_LOCKED_FIELDS = 'display_locked_fields ' ;
7779 const MIGRATE_TYPES = 'migratetypes ' ;
7880 const POST_KANBAN_CONTENT = 'post_kanban_content ' ;
@@ -87,7 +89,7 @@ class Hooks
8789 const UNDISCLOSED_CONFIG_VALUE = 'undiscloseConfigValue ' ;
8890 const FILTER_ACTORS = 'filter_actors ' ;
8991
90- // Item hooks expecting an 'item' parameter
92+ // Item hooks expecting an 'item' parameter
9193 const ADD_RECIPIENT_TO_TARGET = 'add_recipient_to_target ' ;
9294 const AUTOINVENTORY_INFORMATION = 'autoinventory_information ' ;
9395 const INFOCOM = 'infocom ' ;
@@ -110,7 +112,7 @@ class Hooks
110112 const PRE_ITEM_RESTORE = 'pre_item_restore ' ;
111113 const SHOW_ITEM_STATS = 'show_item_stats ' ;
112114
113- // Item hooks expecting an array parameter (available keys: item, options)
115+ // Item hooks expecting an array parameter (available keys: item, options)
114116 const ITEM_TRANSFER = 'item_transfer ' ;
115117 const POST_ITEM_FORM = 'post_item_form ' ;
116118 const POST_SHOW_ITEM = 'post_show_item ' ;
@@ -122,17 +124,17 @@ class Hooks
122124 const TIMELINE_ANSWER_ACTIONS = 'timeline_answer_actions ' ; // (keys: item)
123125 const SHOW_IN_TIMELINE = 'show_in_timeline ' ; // (keys: item)
124126
125- // Security hooks (data to encypt)
127+ // Security hooks (data to encypt)
126128 const SECURED_FIELDS = 'secured_fields ' ;
127129 const SECURED_CONFIGS = 'secured_configs ' ;
128130
129- // Inventory hooks
131+ // Inventory hooks
130132 const PROLOG_RESPONSE = 'prolog_response ' ;
131133 const NETWORK_DISCOVERY = 'network_discovery ' ;
132134 const NETWORK_INVENTORY = 'network_inventory ' ;
133135 const INVENTORY_GET_PARAMS = 'inventory_get_params ' ;
134136
135- // Agent contact request related hooks
137+ // Agent contact request related hooks
136138 const HANDLE_INVENTORY_TASK = 'handle_inventory_task ' ;
137139 const HANDLE_NETDISCOVERY_TASK = 'handle_netdiscovery_task ' ;
138140 const HANDLE_NETINVENTORY_TASK = 'handle_netinventory_task ' ;
0 commit comments