Chats v3:Dev Notepad:Plug-in API
From PJJ Wiki
The plug-in API consists of a number of hooks that the plug-in can register functions for.
RegisterHook()
The central registration handler is RegisterHook($where, $who). $where is a pre-defined constant signifying a hook-point, and $who is the function to be called at that point. $who can either be a string for stand-alone functions, or an array($obj, 'method') for instantiated classes, or array('class', 'method') for static methods. The number of arguments that the registered function will be called with varies by the hook-point. A list of hook-points and prototypes follow...
Hook Points
| Hook Point | Arguments | Must return |
| HOOK_PRETTYPARSE | $output | Return a processed $output where you have replaced all your custom {MARKER} tags with meaningful data. |
