Implement dashboards hooks

This commit is contained in:
Alexandre Delaunay
2020-07-06 15:01:59 +02:00
committed by Cédric Anne
parent 3fa4e67698
commit 0b61ae3bdd
2 changed files with 115 additions and 0 deletions

View File

@ -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'];
}