Manual:Hooks/PageHistoryBeforeList

From MediaWiki.org
Jump to: navigation, search
PageHistoryBeforeList
Available from version 1.10.0
When a history page list is about to be constructed.

Define function:
public static function onPageHistoryBeforeList( $article, $context ) { ... }

Attach hook:
$wgHooks['PageHistoryBeforeList'][] = 'MyExtensionHooks::onPageHistoryBeforeList';
Called from: HistoryPage.php

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


Details [edit]

  • $article: the article that the history is loading for
  • $context: RequestContext object, since 1.21 (gerrit change 53603)