General developer forum

I'm new to Moodle and need to create a trigger

 
Picture of Rex Lorenzo
Re: I'm new to Moodle and need to create a trigger
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Plugins guardiansGroup 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: -