by Rex Lorenzo.
Yikes, no, you shouldn't register to handle an event that way.
Please read the "Handling an event" part of the documentation:
http://docs.moodle.org/dev/Events_API#Example
There is a code example in the mod/forum directory.