r73965 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73964‎ | r73965 | r73966 >
Date:18:06, 29 September 2010
Author:tparscal
Status:deferred
Tags:
Comment:
Added parser test table hook
Modified paths:
  • /trunk/extensions/ArticleEmblems/ArticleEmblems.hooks.php (modified) (history)
  • /trunk/extensions/ArticleEmblems/ArticleEmblems.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleEmblems/ArticleEmblems.hooks.php
@@ -23,6 +23,14 @@
2424 return true;
2525 }
2626
 27+ /**
 28+ * ParserTestTables hook
 29+ */
 30+ public static function parserTestTables( &$tables ) {
 31+ $tables[] = 'articleemblems';
 32+ return true;
 33+ }
 34+
2735 /*
2836 * ParserInit hook
2937 */
Index: trunk/extensions/ArticleEmblems/ArticleEmblems.php
@@ -24,6 +24,7 @@
2525 $wgExtensionMessagesFiles['ArticleEmblems'] = dirname( __FILE__ ) . '/ArticleEmblems.i18n.php';
2626 $wgHooks['LoadExtensionSchemaUpdates'][] = 'ArticleEmblemsHooks::loadExtensionSchemaUpdates';
2727 $wgHooks['ParserFirstCallInit'][] = 'ArticleEmblemsHooks::parserInit';
 28+$wgHooks['ParserTestTables'][] = 'ArticleEmblemsHooks::parserTestTables';
2829 $wgHooks['ArticleViewHeader'][] = 'ArticleEmblemsHooks::articleViewHeader';
2930 $wgHooks['ArticleSaveComplete'][] = 'ArticleEmblemsHooks::articleSaveComplete';
3031 $wgHooks['ResourceLoaderRegisterModules'][] = 'ArticleEmblemsHooks::resourceLoaderRegisterModules';
\ No newline at end of file

Status & tagging log