PostNuke Help

Previous
Calling Hooks

Home
up

Next
Registering Hooks


Writing Hooks

If you are developing a utility module then you probably want to allow your module to be called as a hook. This requires the module functions to be able to be called as hooks, and the module to register and unregister its hooks as required.

Writing Hook Functions

Hook functions are very similar to standard module functions, but they have a number of extra restrictions placed on them to be able to work as hooks:

The Ratings module that comes with the core PostNuke distribution has an example hook function that shows how to fit within these guidelines whilst still producing a general-purpose function.


Previous
Calling Hooks

Home
up

Next
Registering Hooks