mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-08-24 06:35:49 +02:00
Implement dashboards hooks
This commit is contained in:
committed by
Cédric Anne
parent
3fa4e67698
commit
0b61ae3bdd
@@ -219,6 +219,9 @@ function plugin_init_example() {
|
||||
|
||||
$PLUGIN_HOOKS[Hooks::FILTER_ACTORS]['example'] = "plugin_example_filter_actors";
|
||||
|
||||
// add new cards to dashboard grid
|
||||
$PLUGIN_HOOKS['dashboard_types']['example'] = ['PluginExampleExample', 'dashboardTypes'];
|
||||
$PLUGIN_HOOKS['dashboard_cards']['example'] = ['PluginExampleExample', 'dashboardCards'];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user