So, developers and people tracking CVS will have noted that I've added
event-hooking facilities to MediaWiki. There's a framework for adding
hooks to events, documentation, and a sample extension that uses event
hooks to log events to the syslog facility. I plan to keep adding events
to the codebase (and event hooks to the Syslog extension) over the next
few days as I think of them and figure out how to implement them.
I think that RC patrol would be a stellar example of a feature that
should be implemented using event hooks. First, it's optional. Second,
the enabling code for it is spread over several different functions in
several different modules -- it would be more comprehensible and
maintainable if it were all consolidated in one place. Finally, it's
reactive to "core" events like saving and viewing articles.
My question: would anyone be freaked out if I migrated RC patrol to a
single module using event hooks? I'm not 100% sure it can be done, but I
think it would be a worthwhile exercise.
Evan Prodromou .O.