General developer forum

 
 
Picture of Rex Lorenzo
Re: I'm new to Moodle and need to create a trigger
Group DevelopersGroup Particularly helpful MoodlersGroup Testers

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.

 
Average of ratings: -