implement new hook timeline_actions

This commit is contained in:
Alexandre Delaunay
2019-02-21 09:50:53 +01:00
committed by Cédric Anne
parent 511aba6951
commit 2621e6ceb9
2 changed files with 29 additions and 0 deletions

View File

@ -204,6 +204,11 @@ function plugin_init_example() {
$PLUGIN_HOOKS['pre_item_form']['example'] = ['PluginExampleItemForm', 'preItemForm'];
$PLUGIN_HOOKS['post_item_form']['example'] = ['PluginExampleItemForm', 'postItemForm'];
// Add new actions to timeline
$PLUGIN_HOOKS['timeline_actions']['example'] = [
'PluginExampleItemForm', 'timelineActions'
];
// declare this plugin as an import plugin for Computer itemtype
$PLUGIN_HOOKS['import_item']['example'] = ['Computer' => ['Plugin']];