You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
ecartz edited this page Jan 10, 2021
·
4 revisions
Hooks are invoked by the core code as $OSCOM_Hooks->call('group', 'action'); (replace group and action as appropriate). To respond, a hook listens for the action to be called. This is sometimes called a Publish/Subscribe model. The listener functions are the subscribers. And each call or generate publishes to all subscribers.
File-based hooks do this with methods named listen_action (again replace action with the actual label). E.g. a file-based system hook would be listen_startApplication. A database hook listens for the defined hooks_action.