Extension:MirrorTools/Hooks

These are hooks that needed to be added to the core in order for MirrorTools to fully work. See 155093.

DifferenceEngine.php

 * wfRunHooks( 'ShowDiffPageOldMinor', array( $this->mOldRev, &$newMinor ) );
 * $wgHooks['ShowDiffPageOldMinor'][] = 'MirrorTools::showDiffPageOldMinor';


 * wfRunHooks( 'ShowDiffPageNewMinor', array( $this->mNewRev, &$newMinor ) );
 * $wgHooks['ShowDiffPageNewMinor'][] = 'MirrorTools::showDiffPageNewMinor';

RecentChange.php

 * wfRunHooks( 'RecentChangesFields', array( &$fields ) );
 * $wgHooks['RecentChangesFields'][] = 'MirrorTools::recentChangesFields';

OldChangesList.php

 * wfRunHooks( 'OldChangesListRecentChangesFlags', array( $rc, &$flags ) );
 * $wgHooks['OldChangesListRecentChangesFlags'][] = 'MirrorTools::oldChangesListRecentChangesFlags';


 * wfRunHooks( 'OldChangesListLogFlags', array( $rc, &$flags ) );
 * $wgHooks['OldChangesListLogFlags'][] = 'MirrorTools::oldChangesListLogFlags';

EnhancedChangesList.php

 * wfRunHooks( 'EnhancedChangesListMainlineRecentChangesFlags', array( &$flags ) );
 * $wgHooks['EnhancedChangesListMainlineRecentChangesFlags'][] = 'MirrorTools::enhancedChangesListMainlineRecentChangesFlags';


 * wfRunHooks( 'EnhancedChangesListSubentryRecentChangesFlags', array( $rcObj, &$flags ) );
 * $wgHooks['EnhancedChangesListSubentryRecentChangesFlags'][] = 'MirrorTools::enhancedChangesListSubentryRecentChangesFlags';


 * wfRunHooks( 'EnhancedChangesBlockLineFlags', array( $rcObj, &$r ) );
 * $wgHooks['EnhancedChangesBlockLineFlags'][] = 'MirrorTools::enhancedChangesBlockLineFlags';

HistoryAction.php

 * wfRunHooks( 'HistoryLineFlags', array( $rev, &$s ) );
 * $wgHooks['HistoryLineFlags'][] = 'MirrorTools::historyLineFlags';

Revision.php

 * wfRunHooks( 'RevisionSelectFields', array( &$fields ) );
 * $wgHooks['RevisionSelectFields'][] = 'MirrorTools::revisionSelectFields';


 * wfRunHooks( 'RevisionAttribs', array( $row, &$attribs ) );
 * $wgHooks['RevisionAttribs'][] = 'MirrorTools::revisionAttribs';