bludit/bl-kernel
Anika Kaiser 4f1c27255c
Update 60.plugins.php
With custom hooks, you can place your plugin's data anywhere you want. For example, you have a footer and you want to have links in your footer. There is a link plugin that displays links in the SiteBar with "<? Php Theme :: plugins ('siteSidebar');?>". If you put this code in your footer, all plugins that use "siteSidebar" will be placed in your footer. With my pull request you can now create your own hooks and it can be guaranteed that only a single plugin places its data there but only if its the only plugin implementing your custom hook.

How to create custom hooks:
in your plugin.php you have to place a  public function "registerHooks" returning an array of String.

´´´ public function registerHooks()
    {
        return array(
            "akLinks",
            "akBusinessHours"
        );
    }
```
2019-03-06 23:24:51 +01:00
..
2019-03-06 23:24:51 +01:00
2019-02-24 15:19:23 +05:30
2019-02-22 18:42:27 +01:00
2019-02-24 15:19:23 +05:30
2019-02-26 00:47:34 +01:00
2018-03-08 22:15:33 +05:30
2019-02-19 08:38:17 +01:00
2019-02-22 16:43:00 +01:00
2019-02-22 18:26:42 +01:00