From: Andrew Garrett Date: Tue, 22 Apr 2008 13:02:33 +0000 (+0000) Subject: (bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor... X-Git-Tag: 1.31.0-rc.0~48135 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=8fd8155ee24a594a24f332c00d382ee261d8f96e;p=lhc%2Fweb%2Fwiklou.git (bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor Walc, but with some indentation fixing, and my own documentation on the hook --- 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