X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=d932148e4d0a49f3fb78bf7aa1ba3fabd1c5516f;hb=6f98988380f39fb8684dbd020cdebedf18cfcaa8;hp=4e8474bfd6a0200f8a272c5eeacfee86c95fa0fc;hpb=e81a7da6c000384b97319c269ffd1e67afcb8ea8;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 4e8474bfd6..d932148e4d 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1209,6 +1209,14 @@ $row: the DB row for this line Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute). +'DeleteUnknownPreferences': Called by the cleanupPreferences.php maintenance script to build a WHERE clause with which +to delete preferences that are not known about. This hook is used by extensions that have dynamically-named preferences +that should not be deleted in the usual cleanup process. For example, the Gadgets extension creates preferences prefixed +with 'gadget-', and so anything with that prefix is excluded from the deletion. +&where: An array that will be passed as the $cond parameter to IDatabase::select() to determine what will be deleted + from the user_properties table. +$db: The IDatabase object, useful for accessing $db->buildLike() etc. + 'DifferenceEngineAfterLoadNewText': called in DifferenceEngine::loadNewText() after the new revision's content has been loaded into the class member variable $differenceEngine->mNewContent but before returning true from this function. @@ -2787,12 +2795,6 @@ configuration variables to JavaScript. Things that depend on the current page or request state must be added through MakeGlobalVariablesScript instead. &$vars: array( variable name => value ) -'ResourceLoaderGetLessVars': DEPRECATED! Called in ResourceLoader::getLessVars -to add global LESS variables. Loaded after $wgResourceLoaderLESSVars is added. -Global LESS variables are deprecated. Use ResourceLoaderModule::getLessVars() -instead to expose variables only in modules that need them. -&$lessVars: array of variables already added - 'ResourceLoaderJqueryMsgModuleMagicWords': Called in ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg. The value should be a string, and they can depend only on the