'EnhancedChangesList::getLogText': to alter, remove or add to the links of a
group of changes in EnhancedChangesList.
+Hook subscribers can return false to omit this line from recentchanges.
$changesList: EnhancedChangesList object
&$links: The links that were generated by EnhancedChangesList
$block: The RecentChanges objects in that block
'EnhancedChangesListModifyLineData': to alter data used to build
a grouped recent change inner line in EnhancedChangesList.
+Hook subscribers can return false to omit this line from recentchanges.
$changesList: EnhancedChangesList object
&$data: An array with all the components that will be joined in order to create the line
$block: An array of RecentChange objects in that block
$data['tags'] = $this->getTags( $rcObj, $classes );
// give the hook a chance to modify the data
- Hooks::run( 'EnhancedChangesListModifyLineData',
+ $success = Hooks::run( 'EnhancedChangesListModifyLineData',
array( $this, &$data, $block, $rcObj ) );
+ if ( !$success ) {
+ // skip entry if hook aborted it
+ continue;
+ }
$line = '<tr' . $trClass . '><td></td><td class="mw-enhanced-rc">';
if ( isset( $data['recentChangesFlags'] ) ) {
$data['watchingUsers'] = $this->numberofWatchingusers( $rcObj->numberofWatchingusers );
// give the hook a chance to modify the data
- Hooks::run( 'EnhancedChangesListModifyBlockLineData',
+ $success = Hooks::run( 'EnhancedChangesListModifyBlockLineData',
array( $this, &$data, $rcObj ) );
+ if ( !$success ) {
+ // skip entry if hook aborted it
+ return '';
+ }
$line = Html::openElement( 'table', array( 'class' => $classes ) ) .
Html::openElement( 'tr' );