r80333 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80332‎ | r80333 | r80334 >
Date:21:54, 14 January 2011
Author:ialex
Status:ok
Tags:
Comment:
Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -506,6 +506,9 @@
507507 &$sectionanchor: The section anchor link (e.g. "#overview" )
508508 &$extraq: Extra query parameters which can be added via hooked functions
509509
 510+'ArticleViewFooter': After showing the footer section of an ordinary page view
 511+$article: Article object
 512+
510513 'ArticleViewHeader': Before the parser cache is about to be tried for article
511514 viewing.
512515 &$article: the article
Index: trunk/phase3/includes/Article.php
@@ -1295,6 +1295,9 @@
12961296 if ( $wgUseTrackbacks ) {
12971297 $this->addTrackbacks();
12981298 }
 1299+
 1300+ wfRunHooks( 'ArticleViewFooter', array( $this ) );
 1301+
12991302 }
13001303
13011304 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r80403* Moved hooks to their own file...ialex15:49, 15 January 2011

Status & tagging log