Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -335,6 +335,15 @@ |
336 | 336 | $tokenFunctions array and return true (returning false makes no sense) |
337 | 337 | $tokenFunctions: array(action => callback) |
338 | 338 | |
| 339 | +'APIQueryUsersTokens': use this hook to add custom token to list=users. |
| 340 | +Every token has an action, which will be used in the ustoken parameter |
| 341 | +and in the output (actiontoken="..."), and a callback function which |
| 342 | +should return the token, or false if the user isn't allowed to obtain |
| 343 | +it. The prototype of the callback function is func($user) where $user |
| 344 | +is the User object. In the hook, just add your callback to the |
| 345 | +$tokenFunctions array and return true (returning false makes no sense) |
| 346 | +$tokenFunctions: array(action => callback) |
| 347 | + |
339 | 348 | 'ArticleAfterFetchContent': after fetching content of an article from the database |
340 | 349 | $article: the article (object) being loaded from the database |
341 | 350 | $content: the content (string) of the article |
— | — | @@ -1479,6 +1488,12 @@ |
1480 | 1489 | $user: user that watched |
1481 | 1490 | $article: article object watched |
1482 | 1491 | |
| 1492 | +'WikiExporter::dumpStableQuery': Get the SELECT query for "stable" revisions dumps |
| 1493 | +One, and only one hook should set this, and return false. |
| 1494 | +&$tables: Database tables to use in the SELECT query |
| 1495 | +&$opts: Options to use for the query |
| 1496 | +&$join: Join conditions |
| 1497 | + |
1483 | 1498 | 'wgQueryPages': called when initialising $wgQueryPages, use this to add new query pages to be updated with maintenance/updateSpecialPages.php |
1484 | 1499 | $query: $wgQueryPages itself |
1485 | 1500 | |