Fix setup for new hook

This commit is contained in:
yllen
2017-08-02 13:33:32 +02:00
committed by Johan Cwiklinski
parent e8acb472eb
commit a16d0fb850
2 changed files with 22 additions and 12 deletions

View File

@ -110,7 +110,8 @@ function plugin_init_example() {
$PLUGIN_HOOKS['item_empty']['example'] = array('Computer' => 'plugin_item_empty_example');
// Restrict right
$PLUGIN_HOOKS['item_can']['example'] = ['Computer' => ['PluginExampleComputer', 'restrict']];
$PLUGIN_HOOKS['item_can']['example'] = ['Computer' => ['PluginExampleComputer', 'item_can']];
$PLUGIN_HOOKS['add_default_where']['example'] = ['Computer' => ['PluginExampleComputer', 'add_default_where']];
// Example using a method in class
$PLUGIN_HOOKS['pre_item_add']['example'] = array('Computer' => array('PluginExampleExample',