Bob,
Actually, it seems that the events_trigger function is now deprecated (as from Moodle 2.6):
function events_trigger($eventname, $eventdata) {
// TODO: uncomment after conversion of all events in standard distribution
// debugging('events_trigger() is deprecated, please use new events instead', DEBUG_DEVELOPER);
return events_trigger_legacy($eventname, $eventdata);
}
Joseph