(bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor...
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 22 Apr 2008 13:02:33 +0000 (13:02 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 22 Apr 2008 13:02:33 +0000 (13:02 +0000)
docs/hooks.txt

index 06de421..73f5a36 100644 (file)
@@ -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