Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | provide a Hook method to unregister all hooks with a given filespec ↵ | redmatrix | 2016-04-27 | 1 | -0/+21 |
| | | | | component. This will be useful in upgrading plugins to use new interfaces, as you won't have to individually unregister hook declarations that you are no longer using in the code. | ||||
* | Class method support for hooks | redmatrix | 2016-04-23 | 1 | -0/+10 |
| | |||||
* | new hook interface (the old one still works but requires handlers to have ↵ | redmatrix | 2016-04-21 | 1 | -0/+76 |
two calling arguments; the first of which is no longer used). The new interface is called from Zotlabs\Extend\Hook::register() and allows you to specify which hook version to use. The default will be the new interface with one function argument. We also implement the hook priority field which was always there but needed to be set manually in the DB. This provides a way for two hook handlers that implement the same hook interface to determine which order to be called in the event of conflicts. |