From 8fd8155ee24a594a24f332c00d382ee261d8f96e Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Tue, 22 Apr 2008 13:02:33 +0000 Subject: [PATCH] (bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor Walc, but with some indentation fixing, and my own documentation on the hook --- docs/hooks.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hooks.txt b/docs/hooks.txt index 06de42193e..73f5a36fa2 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -919,6 +919,12 @@ $user: the User object to load preferences from 'RevisionInsertComplete': called after a revision is inserted into the DB $revision: the Revision +'SanitizerAfterFixTagAttributes': called after the sanitizer normalises tag attributes. +$text: The original text which had the tag attributes fixed in it. +$element: The name of the element in which tag attributes are being fixed +&$attribs: A reference to an array of the source for the attributes to be added, + in the form "$encAttribute=\"$encValue\"" + 'SavePreferences': called at the end of PreferencesForm::savePreferences; returning false prevents the preferences from being saved. $form: the PreferencesForm -- 2.20.1