X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=4e8474bfd6a0200f8a272c5eeacfee86c95fa0fc;hb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;hp=d497884236a7fc2bd1a9894a3ba48c83a0031541;hpb=5bf7087cefdb77daaefd7a488ae68cae60b3e406;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index d497884236..4e8474bfd6 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1666,6 +1666,13 @@ $query: query options passed to Title::getInternalURL() 'GetIP': modify the ip of the current user (called only once). &$ip: string holding the ip as determined so far +'GetLangPreferredVariant': Called in LanguageConverter#getPreferredVariant() to + allow fetching the language variant code from cookies or other such + alternative storage. +&$req: language variant from the URL (string) or boolean false if no variant + was specified in the URL; the value of this variable comes from + LanguageConverter#getURLVariant() + 'GetLinkColours': modify the CSS class of an array of page links. $linkcolour_ids: array of prefixed DB keys of the pages linked to, indexed by page_id. @@ -2326,6 +2333,7 @@ $wikiPage: the WikiPage edited $rev: the new revision $baseID: the revision ID this was based off, if any $user: the editing user +&$tags: tags to apply to the edit and recent change 'OldChangesListRecentChangesLine': Customize entire recent changes line, or return false to omit the line from RecentChanges and Watchlist special pages.