Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1303,10 +1303,19 @@ |
1304 | 1304 | in the message (bool) |
1305 | 1305 | |
1306 | 1306 | 'OldChangesListRecentChangesLine': Customize entire Recent Changes line. |
| 1307 | +you will also need to use the EnhancedChangesListRecentChangesLine to alter |
| 1308 | +the output for user of enhanced recent changes. |
1307 | 1309 | &$changeslist: The OldChangesList instance. |
1308 | 1310 | &$s: HTML of the form "<li>...</li>" containing one RC entry. |
1309 | 1311 | &$rc: The RecentChange object. |
1310 | 1312 | |
| 1313 | +'RecentChangesListRecentChangesLine': Customize entire Recent Changes line. |
| 1314 | +you will also need to use the OldChangesListRecentChangesLine to alter |
| 1315 | +the output for user of regular recent changes. |
| 1316 | +&$changeslist: The EnhancedChangesList instance. |
| 1317 | +&$s: HTML of the form "<li>...</li>" containing one RC entry. |
| 1318 | +&$rc: The RecentChange object. |
| 1319 | + |
1311 | 1320 | 'OpenSearchUrls': Called when constructing the OpenSearch description XML. |
1312 | 1321 | Hooks can alter or append to the array of URLs for search & suggestion formats. |
1313 | 1322 | &$urls: array of associative arrays with Url element attributes |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -61,6 +61,9 @@ |
62 | 62 | to stop it from replace an already existing default sort, and suppress error. |
63 | 63 | * (bug 18578) Rewrote revision delete related messages to allow better |
64 | 64 | localisation |
| 65 | +* New hook RecentChangesListRecentChangesLine which let you customize an |
| 66 | + entire recent changes line for user with 'Enhanced recent changes' option |
| 67 | + It is equivalent to the existing hook OldChangesListRecentChangesLine |
65 | 68 | |
66 | 69 | === Bug fixes in 1.19 === |
67 | 70 | * $wgUploadNavigationUrl should be used for file redlinks if |
Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -741,6 +741,8 @@ |
742 | 742 | array_push( $this->rc_cache[$secureName], $rc ); |
743 | 743 | } |
744 | 744 | |
| 745 | + wfRunHooks( 'EnhancedChangesListRecentChangesLine', array(&$this, &$s, $rc) ); |
| 746 | + |
745 | 747 | wfProfileOut( __METHOD__ ); |
746 | 748 | |
747 | 749 | return $ret; |