custom event handlers?

custom event handlers?

by ammu v -
Number of replies: 0
Hi all
I am fairly new to Moodle.I have gone through the moodle documentation and with the help of a new plugin I have created a new event handler for user_created event as given below .
$handlers = array(
'user_created' => array(
'handlerfile' => '/blocks/simpleblock/simpleblock.php',
'handlerfunction' => 'user_created_handler',
'schedule' => 'instant'
),

);
And specified the handler function in handlerfile. But it doesnt work for me .please help me on this.

Thanks in advance smile
Average of ratings: -