I want to add a filter hook but it does not work. Here what I done:
First I added the filter provider in Version.php
Code
protected function setupHookBundles()
{
$bundle = new Zikula_HookManager_ProviderBundle($this->name, 'provider.lumicula.filter_hooks.description', 'filter_hooks', $this->__('LuMicuLa Event Maker'));
$bundle->addServiceHandler('filter', 'LuMicuLa_HookHandlers', 'filter', 'lumicula.service');
$this->registerHookProviderBundle($bundle);
}
{
$bundle = new Zikula_HookManager_ProviderBundle($this->name, 'provider.lumicula.filter_hooks.description', 'filter_hooks', $this->__('LuMicuLa Event Maker'));
$bundle->addServiceHandler('filter', 'LuMicuLa_HookHandlers', 'filter', 'lumicula.service');
$this->registerHookProviderBundle($bundle);
}
After a reinstall of the module I could see the hook in the hook drop and drag menus of the modules.
If I drop it to a filter area (eg. News Display Hooks (subscriber.news.filter_hooks.articles) everthing seems to be fine. But after a reload the area is still empty.
What I'm doing wrong?
--
https://github.com/phaidon/
