/usr/local/cpanel/hooks/__MODULENAME__/__FUNCTION__NAME__ and are executed whenever the API event that corresponds to its name occurs.
cPanel function hooks work by being passed XML formatted data from the API via STDIN. These are run 100% as a separate process, so function hooks can be written in any language and are generally safe. If a function hook fails, it will not break the cPanel interface.
/usr/local/cpanel/Cpanel/CustomEventHandler.pm. The event() method inside of this module will be executed every time a cPanel API call is made. The event() method is passed a variety of data, including parameters being passed to the API call and data returned by the API call.
The real value in CustomEventHandlers is that, rather than being executed as separate processes, they are executed as part of the API call. If you wish to deny or modify an event, CustomEventHandler is probably the best method.
CustomEventHandler here.
Copyright © cPanel 2000-2009.