Event Handlers

Event Handlers

Your mojoPortal installation can be extended to run your own custom code during specific events, by creating an Event Handler, and plugging it into the system with a special XML file.

Event Handlers are a very powerful developer feature of mojoPortal, because they allow you to run any custom code you like, each time that event occurs.

Some real world examples illustrating how you might use an Event Handler:

  • To assign default security role(s) to newly registered users.
  • To perform some extra tasks when a new site is created.
  • To add default content to all newly created pages.