This hook is just plain weird.
* Return value on abort destroys the entire data set
* Whitespace is bad
* It's very unclear what this would be used for
* This is a low-level function that's going to get called very often, and the hook is in a place that has little clear function. It's unclear what a general hook would want to do with it.
'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
$attribs[] = "$encAttribute=\"$encValue\"";
}
-
- if ( !wfRunHooks( 'SanitizerAfterFixTagAttributes', array( $text, $element, &$attribs ) ) ) {
- return ''; # They want to abort this.
- }
return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';
}