Manual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges

From MediaWiki.org
Jump to: navigation, search
ArticleEditUpdatesDeleteFromRecentchanges
Available from version 1.6.0
Occurs before saving to the database.

Define function:
public static function onArticleEditUpdatesDeleteFromRecentchanges( &$article ) { ... }

Attach hook:
$wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = 'MyExtensionHooks::onArticleEditUpdatesDeleteFromRecentchanges';
Called from: WikiPage.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleEditUpdatesDeleteFromRecentchanges extensions.


Details [edit]

  • $article: the article (object) being updated or deleted

Notes [edit]

If returning false, old entries are not deleted from the recent changes list.

See also [edit]