On Thu, 2009-04-09 at 16:22 -0400, Christensen, Courtney wrote:
-----Original Message----- From: Robert Cummings On: Wednesday, April 08, 2009 5:05 PM
Specifically I'm looking for information about the correct hook to use to process submitted content just before it is committed to the database. I'm currently using $wgHooks['EditPage::attemptSave'] successfully, but this feels dirty since I'm directly accessing the textbox1 property of the object.
Hi Rob,
Another hook you might try is ArticleSave. http://www.mediawiki.org/wiki/Manual:Hooks/ArticleSave
Have you looked at the hook list? http://www.mediawiki.org/wiki/Manual:MediaWiki_hooks#Hooks_grouped_by_functi...
I had seen the hooks page, but there was very little to go on with respect to which is more appropriate. I'll study the ArticleSave option and see if it meshes better with my ideology :B
Good luck and happy extending!
Thanks and thanks for the help too :)
Cheers, Rob.