X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=7084b51d56aa9df9ecb5cb1690e0930713a90562;hb=cead2cadad000dd76751a32743309823ee66294b;hp=d497884236a7fc2bd1a9894a3ba48c83a0031541;hpb=a29a4a491aa4088bc16255cde0e1da38977643a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index d497884236..7084b51d56 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.