X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=a2929974696b7982894b5db8f4221d86c5eeaec7;hb=21bafdfa24c40af12fa7c4733c1097ee09d75374;hp=0b835c26968f898296827f5c8de2bcecfdfe84f0;hpb=3554bb0f32a64e03ee83cb1bf5d25c61dc9b0d85;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 0b835c2696..a292997469 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1193,6 +1193,14 @@ to do this unless they broke backwards compatibility with a previous version of the media handler metadata output. &$version: Array of version strings +'GetNewMessagesAlert': Disable or modify the new messages alert +&$newMessagesAlert: An empty string by default. If the user has new talk page +messages, this should be populated with an alert message to that effect +$newtalks: An empty array if the user has no new messages or an array containing +links and revisions if there are new messages (See User::getNewMessageLinks) +$user: The user object of the user who is loading the page +$out: OutputPage object (to check what type of page the user is on) + 'GetPreferences': Modify user preferences. $user: User whose preferences are being modified. &$preferences: Preferences description array, to be fed to an HTMLForm object